Class WaitForDataDrainTask
java.lang.Object
com.gigaspaces.internal.client.spaceproxy.executors.SystemTask<T>
com.gigaspaces.internal.client.spaceproxy.executors.SystemDistributedTask<SpaceResponseInfo>
com.gigaspaces.internal.extension.WaitForDataDrainTask
- All Implemented Interfaces:
AsyncResultFilter<SpaceResponseInfo>,AsyncResultsReducer<SpaceResponseInfo,,SpaceResponseInfo> DistributedSpaceTask<SpaceResponseInfo,,SpaceResponseInfo> SpaceTask<SpaceResponseInfo>,SmartExternalizable,Externalizable,Serializable
public class WaitForDataDrainTask
extends SystemDistributedTask<SpaceResponseInfo>
implements SmartExternalizable, AsyncResultFilter<SpaceResponseInfo>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gigaspaces.async.AsyncResultFilter
AsyncResultFilter.Decision -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA 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.voidreduce(List<AsyncResult<SpaceResponseInfo>> asyncResults) setRequest(WaitForDataDrainRequest request) voidMethods inherited from class com.gigaspaces.internal.client.spaceproxy.executors.SystemTask
executeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
WaitForDataDrainTask
public WaitForDataDrainTask() -
WaitForDataDrainTask
public WaitForDataDrainTask(long timeout, long minTimeToWait, boolean backupOnly)
-
-
Method Details
-
getSpaceRequestInfo
- Specified by:
getSpaceRequestInfoin classSystemTask<SpaceResponseInfo>
-
setRequest
-
getResponse
-
reduce
- Specified by:
reducein interfaceAsyncResultsReducer<SpaceResponseInfo,SpaceResponseInfo> - Throws:
Exception
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classSystemDistributedTask<SpaceResponseInfo>- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classSystemDistributedTask<SpaceResponseInfo>- Throws:
IOExceptionClassNotFoundException
-
onResult
Description copied from interface:AsyncResultFilterA 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.- Specified by:
onResultin interfaceAsyncResultFilter<SpaceResponseInfo>
-