Class MultiBucketSingleFileReplicationInBatchContext
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.ReplicationInContext
com.gigaspaces.internal.cluster.node.impl.processlog.multibucketsinglefile.MultiBucketSingleFileReplicationInBatchContext
- All Implemented Interfaces:
IReplicationInBatchContext,IReplicationInContext
public class MultiBucketSingleFileReplicationInBatchContext
extends ReplicationInContext
implements IReplicationInBatchContext
-
Constructor Summary
ConstructorsConstructorDescriptionMultiBucketSingleFileReplicationInBatchContext(IBatchExecutedCallback batchExecutedCallback, String sourceLookupName, String groupName, org.slf4j.Logger contextLogger, int entireBatchSize) -
Method Summary
Modifier and TypeMethodDescription<T> voidaddPendingContext(T operationContext) voidint<T> List<T><T> TbooleanvoidShould be called once all the pending operation that are kept in the context are consumed and considered successfully replicated.voidrollback()void<T> voidsetTagObject(T tagObject) voidsnapshot()voidMethods inherited from class com.gigaspaces.internal.cluster.node.impl.ReplicationInContext
getContentContext, getContextLogger, getContextMarker, getGroupName, getLastProcessedKey, getReplicationBlobstoreBulkContext, getSourceLookupName, setContextPacket, setLastProcessedKey, setReplicationBlobstoreBulkContext, supportsDistributedTransactionConsolidationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.internal.cluster.node.IReplicationInContext
getContentContext, getContextLogger, getContextMarker, getGroupName, getLastProcessedKey, getReplicationBlobstoreBulkContext, getSourceLookupName, setReplicationBlobstoreBulkContext, supportsDistributedTransactionConsolidation
-
Constructor Details
-
MultiBucketSingleFileReplicationInBatchContext
public MultiBucketSingleFileReplicationInBatchContext(IBatchExecutedCallback batchExecutedCallback, String sourceLookupName, String groupName, org.slf4j.Logger contextLogger, int entireBatchSize)
-
-
Method Details
-
pendingConsumed
public void pendingConsumed()Description copied from interface:IReplicationInBatchContextShould be called once all the pending operation that are kept in the context are consumed and considered successfully replicated. once called all the pending operations that are kept in the context are cleared- Specified by:
pendingConsumedin interfaceIReplicationInBatchContext
-
addPendingContext
public <T> void addPendingContext(T operationContext) - Specified by:
addPendingContextin interfaceIReplicationInBatchContext
-
updatePendingProcessedKeys
public void updatePendingProcessedKeys() -
getPendingContext
- Specified by:
getPendingContextin interfaceIReplicationInBatchContext
-
setCurrentPacket
-
currentConsumed
public void currentConsumed()- Specified by:
currentConsumedin interfaceIReplicationInBatchContext
-
setTagObject
public <T> void setTagObject(T tagObject) - Specified by:
setTagObjectin interfaceIReplicationInBatchContext
-
getTagObject
public <T> T getTagObject()- Specified by:
getTagObjectin interfaceIReplicationInBatchContext
-
getEntireBatchSize
public int getEntireBatchSize()- Specified by:
getEntireBatchSizein interfaceIReplicationInBatchContext
-
snapshot
public void snapshot() -
rollback
public void rollback() -
isBatchContext
public boolean isBatchContext()- Specified by:
isBatchContextin interfaceIReplicationInContext- Overrides:
isBatchContextin classReplicationInContext
-