public class WaitForDataDrainTask extends SystemDistributedTask<SpaceResponseInfo> implements SmartExternalizable, AsyncResultFilter<SpaceResponseInfo>
AsyncResultFilter.Decision| Constructor and Description |
|---|
WaitForDataDrainTask() |
WaitForDataDrainTask(long timeout,
long minTimeToWait,
boolean backupOnly) |
| Modifier and Type | Method and Description |
|---|---|
WaitForDrainCompoundResponse |
getResponse() |
SpaceRequestInfo |
getSpaceRequestInfo() |
AsyncResultFilter.Decision |
onResult(AsyncResultFilterEvent<SpaceResponseInfo> event)
A callback invoked for each result that arrives as a result of a distributed task execution
allowing to access the result that caused this event, the events received so far, and the
total expected results.
|
void |
readExternal(ObjectInput in) |
SpaceResponseInfo |
reduce(List<AsyncResult<SpaceResponseInfo>> asyncResults) |
WaitForDataDrainTask |
setRequest(WaitForDataDrainRequest request) |
void |
writeExternal(ObjectOutput out) |
executeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenabledSmartExternalizableWithReferencepublic WaitForDataDrainTask()
public WaitForDataDrainTask(long timeout,
long minTimeToWait,
boolean backupOnly)
public SpaceRequestInfo getSpaceRequestInfo()
getSpaceRequestInfo in class SystemTask<SpaceResponseInfo>public WaitForDataDrainTask setRequest(WaitForDataDrainRequest request)
public WaitForDrainCompoundResponse getResponse()
public SpaceResponseInfo reduce(List<AsyncResult<SpaceResponseInfo>> asyncResults) throws Exception
reduce in interface AsyncResultsReducer<SpaceResponseInfo,SpaceResponseInfo>Exceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class SystemDistributedTask<SpaceResponseInfo>IOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class SystemDistributedTask<SpaceResponseInfo>IOExceptionClassNotFoundExceptionpublic AsyncResultFilter.Decision onResult(AsyncResultFilterEvent<SpaceResponseInfo> event)
AsyncResultFilteronResult in interface AsyncResultFilter<SpaceResponseInfo>Copyright © GigaSpaces.