public class SpaceCopyReplicaRunnable extends AsyncCallable implements AsyncFutureListener<Collection<ISpaceReplicaData>>
Constructor and Description |
---|
SpaceCopyReplicaRunnable(ReplicationNode replicationNode,
IReplicationMonitoredConnection originConnection,
ISpaceReplicaDataConsumer replicaDataProcessor,
ISpaceCopyReplicaInFilter inFilter,
Object replicaRemoteContext,
int fetchBatchSize,
SpaceReplicaState state,
CyclicAtomicInteger orderProvider) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
IAsyncHandlerProvider.CycleResult |
call() |
ISpaceCopyIntermediateResult |
getIntermediateResult() |
long |
getLastIterationTimeStamp() |
void |
onResult(AsyncResult<Collection<ISpaceReplicaData>> result)
A callback when a result of an async invocation arrives.
|
protected void |
processBatch(Collection<ISpaceReplicaData> copiedData,
boolean resumeNow) |
getHandler, setHandler
protected static final Logger _logger
public SpaceCopyReplicaRunnable(ReplicationNode replicationNode, IReplicationMonitoredConnection originConnection, ISpaceReplicaDataConsumer replicaDataProcessor, ISpaceCopyReplicaInFilter inFilter, Object replicaRemoteContext, int fetchBatchSize, SpaceReplicaState state, CyclicAtomicInteger orderProvider)
public ISpaceCopyIntermediateResult getIntermediateResult()
public IAsyncHandlerProvider.CycleResult call()
call
in interface Callable<IAsyncHandlerProvider.CycleResult>
public long getLastIterationTimeStamp()
public void abort()
public void onResult(AsyncResult<Collection<ISpaceReplicaData>> result)
AsyncFutureListener
onResult
in interface AsyncFutureListener<Collection<ISpaceReplicaData>>
protected void processBatch(Collection<ISpaceReplicaData> copiedData, boolean resumeNow)
Copyright © GigaSpaces.