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) |
execute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enabledSmartExternalizableWithReference
public 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>
Exception
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class SystemDistributedTask<SpaceResponseInfo>
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class SystemDistributedTask<SpaceResponseInfo>
IOException
ClassNotFoundException
public AsyncResultFilter.Decision onResult(AsyncResultFilterEvent<SpaceResponseInfo> event)
AsyncResultFilter
onResult
in interface AsyncResultFilter<SpaceResponseInfo>
Copyright © GigaSpaces.