Class AbstractReplicationInBatchContext
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.ReplicationInContext
com.gigaspaces.internal.cluster.node.impl.AbstractReplicationInBatchContext
- All Implemented Interfaces:
IReplicationInBatchContext,IReplicationInContext
- Direct Known Subclasses:
GlobalOrderReplicationInBatchContext,MultiSourceSingleFileReplicationInBatchContext
public abstract class AbstractReplicationInBatchContext
extends ReplicationInContext
implements IReplicationInBatchContext
- Since:
- 9.1
- Author:
- idan
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractReplicationInBatchContext(org.slf4j.Logger contextLogger, int entireBatchSize, String sourceLookupName, String groupName, boolean supportDistTransactionConsolidation) -
Method Summary
Modifier and TypeMethodDescription<T> voidaddPendingContext(T operationContext) protected abstract voidafterBatchConsumed(long lastProcessedKeyInBatch) voidlongint<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()voidsetCurrentKey(long currentKey) <T> voidsetTagObject(T tagObject) voidsnapshot()Methods 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
-
AbstractReplicationInBatchContext
-
-
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
-
getPendingContext
- Specified by:
getPendingContextin interfaceIReplicationInBatchContext
-
setCurrentKey
public void setCurrentKey(long currentKey) -
currentConsumed
public void currentConsumed()- Specified by:
currentConsumedin interfaceIReplicationInBatchContext
-
afterBatchConsumed
protected abstract void afterBatchConsumed(long lastProcessedKeyInBatch) -
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
-
getCurrentKey
public long getCurrentKey() -
snapshot
public void snapshot() -
rollback
public void rollback() -
isBatchContext
public boolean isBatchContext()- Specified by:
isBatchContextin interfaceIReplicationInContext- Overrides:
isBatchContextin classReplicationInContext
-