public class SpaceCopyReplicaRunnable extends AsyncCallable implements AsyncFutureListener<Collection<ISpaceReplicaData>>
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
_logger |
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() |
protected boolean |
hasProgress(long lastIterationTimeStamp)
returns true if progress has been identified since last iteration timestamp.
|
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
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 boolean hasProgress(long lastIterationTimeStamp)
lastIterationTimeStamp
- last timestamp to compare withprotected void processBatch(Collection<ISpaceReplicaData> copiedData, boolean resumeNow)
Copyright © GigaSpaces.