Class DeletedMultiBucketOrderedPacket
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.backlog.multibucketsinglefile.AbstractMultiBucketOrderedPacket
com.gigaspaces.internal.cluster.node.impl.backlog.multibucketsinglefile.DeletedMultiBucketOrderedPacket
- All Implemented Interfaces:
IMultiBucketSingleFileReplicationOrderedPacket, IReplicationOrderedPacket, ISwapExternalizable, SmartExternalizable, Externalizable, Serializable, Cloneable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeletedMultiBucketOrderedPacket(long startGlobalKey, long endGlobalKey, ShortObjectMap<BucketKey> bucketsStartKeys, ShortLongMap bucketEndKeys) -
Method Summary
Modifier and TypeMethodDescriptionclone()cloneWithNewData(IReplicationPacketData<?> newData) Clones the packet replacing its data with the new datalonggetBucketEndKey(short bucketIndex) getConsumeState(short bucketIndex) getData()longreturn the last key for given packets - relevant to range packets - merged discarded/deleted packetsbooleanbooleanprocess(String sourceLookupName, IMultiBucketSingleFileProcessLog processLog, IReplicationInFilterCallback inFilterCallback, ParallelBatchProcessingContext context, int segmentIndex) longprocessResult(String memberName, MultiBucketSingleFileProcessResult processResult, MultiBucketSingleFileConfirmationHolder confirmationHolder) voidvoidvoidreliableAsyncKeysUpdate(long[] bucketLastKeys, MultiBucketSingleFileConfirmationHolder confirmationHolder) booleanvoidvoidwriteToSwap(ObjectOutput out) Methods inherited from class AbstractMultiBucketOrderedPacket
associateToBuckets, bucketCount, equals, getBucketKey, getBuckets, getBucketsKeys, getKey, getReliableAsyncBeforeFilterPacket, getWeight, hashCode, readBucketKeys, setReliableAsyncBeforeFilterPacket, toString, writeBucketKeysMethods inherited from interface SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
DeletedMultiBucketOrderedPacket
public DeletedMultiBucketOrderedPacket() -
DeletedMultiBucketOrderedPacket
public DeletedMultiBucketOrderedPacket(long startGlobalKey, long endGlobalKey, ShortObjectMap<BucketKey> bucketsStartKeys, ShortLongMap bucketEndKeys)
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAbstractMultiBucketOrderedPacket- Throws:
IOException
-
writeToSwap
- Specified by:
writeToSwapin interfaceISwapExternalizable- Overrides:
writeToSwapin classAbstractMultiBucketOrderedPacket- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAbstractMultiBucketOrderedPacket- Throws:
IOExceptionClassNotFoundException
-
readFromSwap
- Specified by:
readFromSwapin interfaceISwapExternalizable- Overrides:
readFromSwapin classAbstractMultiBucketOrderedPacket- Throws:
IOExceptionClassNotFoundException
-
getData
- Returns:
- the actual packet data that is needed for the processing
-
getEndKey
public long getEndKey()Description copied from interface:IReplicationOrderedPacketreturn the last key for given packets - relevant to range packets - merged discarded/deleted packets- Specified by:
getEndKeyin interfaceIReplicationOrderedPacket- Overrides:
getEndKeyin classAbstractMultiBucketOrderedPacket
-
getBucketEndKey
public long getBucketEndKey(short bucketIndex) -
isDataPacket
public boolean isDataPacket() -
isDiscardedPacket
public boolean isDiscardedPacket() -
clone
- Specified by:
clonein interfaceIMultiBucketSingleFileReplicationOrderedPacket- Specified by:
clonein interfaceIReplicationOrderedPacket- Specified by:
clonein classAbstractMultiBucketOrderedPacket
-
cloneWithNewData
public IMultiBucketSingleFileReplicationOrderedPacket cloneWithNewData(IReplicationPacketData<?> newData) Description copied from interface:IReplicationOrderedPacketClones the packet replacing its data with the new data -
process
public MultiBucketSingleFileProcessResult process(String sourceLookupName, IMultiBucketSingleFileProcessLog processLog, IReplicationInFilterCallback inFilterCallback, ParallelBatchProcessingContext context, int segmentIndex) -
processResult
public long processResult(String memberName, MultiBucketSingleFileProcessResult processResult, MultiBucketSingleFileConfirmationHolder confirmationHolder) - Specified by:
processResultin interfaceIMultiBucketSingleFileReplicationOrderedPacket- Overrides:
processResultin classAbstractMultiBucketOrderedPacket
-
reliableAsyncKeysUpdate
public void reliableAsyncKeysUpdate(long[] bucketLastKeys, MultiBucketSingleFileConfirmationHolder confirmationHolder) - Specified by:
reliableAsyncKeysUpdatein interfaceIMultiBucketSingleFileReplicationOrderedPacket- Overrides:
reliableAsyncKeysUpdatein classAbstractMultiBucketOrderedPacket
-
getConsumeState
-
setConsumed
public boolean setConsumed() -
replaceWithDiscarded
-