Class MultipleBucketOrderedPacket
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.backlog.multibucketsinglefile.AbstractMultiBucketOrderedPacket
com.gigaspaces.internal.cluster.node.impl.backlog.multibucketsinglefile.MultipleBucketOrderedPacket
- All Implemented Interfaces:
IMultiBucketSingleFileReplicationOrderedPacket,IReplicationOrderedPacket,ISwapExternalizable,SmartExternalizable,Externalizable,Serializable,Cloneable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMultipleBucketOrderedPacket(long globalKey, ShortObjectMap<BucketKey> bucketsKeys, IReplicationPacketData<?> data) -
Method Summary
Modifier and TypeMethodDescriptionclone()cloneWithNewData(IReplicationPacketData<?> newData) Clones the packet replacing its data with the new datagetConsumeState(short bucketIndex) getData()booleanbooleanprocess(String sourceLookupName, IMultiBucketSingleFileProcessLog processLog, IReplicationInFilterCallback inFilterCallback, ParallelBatchProcessingContext context, int segmentIndex) voidvoidbooleanvoidvoidwriteToSwap(ObjectOutput out) Methods inherited from class com.gigaspaces.internal.cluster.node.impl.backlog.multibucketsinglefile.AbstractMultiBucketOrderedPacket
associateToBuckets, bucketCount, equals, getBucketKey, getBuckets, getBucketsKeys, getEndKey, getKey, getReliableAsyncBeforeFilterPacket, getWeight, hashCode, processResult, readBucketKeys, reliableAsyncKeysUpdate, setReliableAsyncBeforeFilterPacket, toString, writeBucketKeysMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
MultipleBucketOrderedPacket
public MultipleBucketOrderedPacket() -
MultipleBucketOrderedPacket
public MultipleBucketOrderedPacket(long globalKey, ShortObjectMap<BucketKey> bucketsKeys, IReplicationPacketData<?> data)
-
-
Method Details
-
getData
- Returns:
- the actual packet data that is needed for the processing
-
isDataPacket
public boolean isDataPacket() -
isDiscardedPacket
public boolean isDiscardedPacket() -
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
-
process
public MultiBucketSingleFileProcessResult process(String sourceLookupName, IMultiBucketSingleFileProcessLog processLog, IReplicationInFilterCallback inFilterCallback, ParallelBatchProcessingContext context, int segmentIndex) -
clone
- Specified by:
clonein interfaceIMultiBucketSingleFileReplicationOrderedPacket- Specified by:
clonein interfaceIReplicationOrderedPacket- Specified by:
clonein classAbstractMultiBucketOrderedPacket
-
cloneWithNewData
Description copied from interface:IReplicationOrderedPacketClones the packet replacing its data with the new data -
getConsumeState
-
setConsumed
public boolean setConsumed() -
replaceWithDiscarded
-