Class SingleBucketOrderedPacket
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.backlog.multibucketsinglefile.AbstractSingleBucketOrderedPacket
com.gigaspaces.internal.cluster.node.impl.backlog.multibucketsinglefile.SingleBucketOrderedPacket
- All Implemented Interfaces:
IMultiBucketSingleFileReplicationOrderedPacket,ISingleBucketReplicationOrderedPacket,IReplicationOrderedPacket,ISwapExternalizable,SmartExternalizable,Externalizable,Serializable,Cloneable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSingleBucketOrderedPacket(long globalKey, long bucketKey, short bucketIndex, IReplicationPacketData<?> data) -
Method Summary
Modifier and TypeMethodDescriptionclone()cloneWithNewData(IReplicationPacketData<?> newData) Clones the packet replacing its data with the new datagetData()intbooleanbooleanprocess(String sourceLookupName, IMultiBucketSingleFileProcessLog processLog, IReplicationInFilterCallback inFilterCallback, ParallelBatchProcessingContext context, int segmentIndex) voidvoidvoidvoidwriteToSwap(ObjectOutput out) Methods inherited from class com.gigaspaces.internal.cluster.node.impl.backlog.multibucketsinglefile.AbstractSingleBucketOrderedPacket
associateToBuckets, bucketCount, equals, getBucketIndex, getBucketKey, getBucketKey, getBuckets, getConsumeState, getEndKey, getKey, getReliableAsyncBeforeFilterPacket, hashCode, processResult, reliableAsyncKeysUpdate, setConsumed, setReliableAsyncBeforeFilterPacket, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
SingleBucketOrderedPacket
public SingleBucketOrderedPacket() -
SingleBucketOrderedPacket
public SingleBucketOrderedPacket(long globalKey, long bucketKey, short bucketIndex, IReplicationPacketData<?> data)
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAbstractSingleBucketOrderedPacket- Throws:
IOException
-
writeToSwap
- Specified by:
writeToSwapin interfaceISwapExternalizable- Overrides:
writeToSwapin classAbstractSingleBucketOrderedPacket- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAbstractSingleBucketOrderedPacket- Throws:
IOExceptionClassNotFoundException
-
readFromSwap
- Specified by:
readFromSwapin interfaceISwapExternalizable- Overrides:
readFromSwapin classAbstractSingleBucketOrderedPacket- Throws:
IOExceptionClassNotFoundException
-
getData
- Returns:
- the actual packet data that is needed for the processing
-
isDataPacket
public boolean isDataPacket() -
isDiscardedPacket
public boolean isDiscardedPacket() -
process
public MultiBucketSingleFileProcessResult process(String sourceLookupName, IMultiBucketSingleFileProcessLog processLog, IReplicationInFilterCallback inFilterCallback, ParallelBatchProcessingContext context, int segmentIndex) -
replaceWithDiscarded
-
clone
- Specified by:
clonein interfaceIMultiBucketSingleFileReplicationOrderedPacket- Specified by:
clonein interfaceIReplicationOrderedPacket- Specified by:
clonein interfaceISingleBucketReplicationOrderedPacket- Specified by:
clonein classAbstractSingleBucketOrderedPacket
-
cloneWithNewData
Description copied from interface:IReplicationOrderedPacketClones the packet replacing its data with the new data -
getWeight
public int getWeight()- Specified by:
getWeightin interfaceIReplicationOrderedPacket- Overrides:
getWeightin classAbstractSingleBucketOrderedPacket
-