Class GetBatchForIteratorDistributedSpaceTask
java.lang.Object
com.gigaspaces.internal.client.spaceproxy.executors.SystemTask<T>
com.gigaspaces.internal.client.spaceproxy.executors.SystemDistributedTask<SpaceIteratorBatchResult>
com.gigaspaces.internal.client.spaceproxy.executors.GetBatchForIteratorDistributedSpaceTask
- All Implemented Interfaces:
AsyncResultFilter<SpaceIteratorBatchResult>,AsyncResultsReducer<SpaceIteratorBatchResult,,SpaceIteratorBatchResult> DistributedSpaceTask<SpaceIteratorBatchResult,,SpaceIteratorBatchResult> SpaceTask<SpaceIteratorBatchResult>,SmartExternalizable,Externalizable,Serializable
public class GetBatchForIteratorDistributedSpaceTask
extends SystemDistributedTask<SpaceIteratorBatchResult>
implements AsyncResultFilter<SpaceIteratorBatchResult>
- Since:
- 15.2.0
- Author:
- Alon Shoham
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gigaspaces.async.AsyncResultFilter
AsyncResultFilter.Decision -
Constructor Summary
ConstructorsConstructorDescriptionGetBatchForIteratorDistributedSpaceTask(SpaceIteratorBatchResultProvider spaceIteratorBatchResultProvider) -
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<SpaceIteratorBatchResult>> asyncResults) 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
-
GetBatchForIteratorDistributedSpaceTask
public GetBatchForIteratorDistributedSpaceTask() -
GetBatchForIteratorDistributedSpaceTask
public GetBatchForIteratorDistributedSpaceTask(SpaceIteratorBatchResultProvider spaceIteratorBatchResultProvider)
-
-
Method Details
-
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<SpaceIteratorBatchResult>
-
reduce
public SpaceIteratorBatchResult reduce(List<AsyncResult<SpaceIteratorBatchResult>> asyncResults) throws Exception - Specified by:
reducein interfaceAsyncResultsReducer<SpaceIteratorBatchResult,SpaceIteratorBatchResult> - Throws:
Exception
-
getSpaceRequestInfo
- Specified by:
getSpaceRequestInfoin classSystemTask<SpaceIteratorBatchResult>
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classSystemDistributedTask<SpaceIteratorBatchResult>- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classSystemDistributedTask<SpaceIteratorBatchResult>- Throws:
IOExceptionClassNotFoundException
-