public class MultiBucketSingleFileReplicationInBatchContext extends ReplicationInContext implements IReplicationInBatchContext
Constructor and Description |
---|
MultiBucketSingleFileReplicationInBatchContext(IBatchExecutedCallback batchExecutedCallback,
String sourceLookupName,
String groupName,
org.slf4j.Logger contextLogger,
int entireBatchSize) |
Modifier and Type | Method and Description |
---|---|
<T> void |
addPendingContext(T operationContext) |
void |
currentConsumed() |
int |
getEntireBatchSize() |
<T> List<T> |
getPendingContext() |
<T> T |
getTagObject() |
boolean |
isBatchContext() |
void |
pendingConsumed()
Should be called once all the pending operation that are kept in the context are consumed and
considered successfully replicated.
|
void |
rollback() |
void |
setCurrentPacket(IMultiBucketSingleFileReplicationOrderedPacket packet) |
<T> void |
setTagObject(T tagObject) |
void |
snapshot() |
void |
updatePendingProcessedKeys() |
getContentContext, getContextLogger, getContextMarker, getGroupName, getLastProcessedKey, getReplicationBlobstoreBulkContext, getSourceLookupName, setContextPacket, setLastProcessedKey, setReplicationBlobstoreBulkContext, supportsDistributedTransactionConsolidation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentContext, getContextLogger, getContextMarker, getGroupName, getLastProcessedKey, getReplicationBlobstoreBulkContext, getSourceLookupName, setReplicationBlobstoreBulkContext, supportsDistributedTransactionConsolidation
public MultiBucketSingleFileReplicationInBatchContext(IBatchExecutedCallback batchExecutedCallback, String sourceLookupName, String groupName, org.slf4j.Logger contextLogger, int entireBatchSize)
public void pendingConsumed()
IReplicationInBatchContext
pendingConsumed
in interface IReplicationInBatchContext
public <T> void addPendingContext(T operationContext)
addPendingContext
in interface IReplicationInBatchContext
public void updatePendingProcessedKeys()
public <T> List<T> getPendingContext()
getPendingContext
in interface IReplicationInBatchContext
public void setCurrentPacket(IMultiBucketSingleFileReplicationOrderedPacket packet)
public void currentConsumed()
currentConsumed
in interface IReplicationInBatchContext
public <T> void setTagObject(T tagObject)
setTagObject
in interface IReplicationInBatchContext
public <T> T getTagObject()
getTagObject
in interface IReplicationInBatchContext
public int getEntireBatchSize()
getEntireBatchSize
in interface IReplicationInBatchContext
public void snapshot()
public void rollback()
public boolean isBatchContext()
isBatchContext
in interface IReplicationInContext
isBatchContext
in class ReplicationInContext
Copyright © GigaSpaces.