public class GetBatchForIteratorDistributedSpaceTask extends SystemDistributedTask<SpaceIteratorBatchResult> implements AsyncResultFilter<SpaceIteratorBatchResult>
AsyncResultFilter.Decision
Constructor and Description |
---|
GetBatchForIteratorDistributedSpaceTask() |
GetBatchForIteratorDistributedSpaceTask(SpaceIteratorBatchResultProvider spaceIteratorBatchResultProvider) |
Modifier and Type | Method and Description |
---|---|
SpaceRequestInfo |
getSpaceRequestInfo() |
AsyncResultFilter.Decision |
onResult(AsyncResultFilterEvent<SpaceIteratorBatchResult> 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) |
SpaceIteratorBatchResult |
reduce(List<AsyncResult<SpaceIteratorBatchResult>> asyncResults) |
void |
writeExternal(ObjectOutput out) |
execute
public GetBatchForIteratorDistributedSpaceTask()
public GetBatchForIteratorDistributedSpaceTask(SpaceIteratorBatchResultProvider spaceIteratorBatchResultProvider)
public AsyncResultFilter.Decision onResult(AsyncResultFilterEvent<SpaceIteratorBatchResult> event)
AsyncResultFilter
onResult
in interface AsyncResultFilter<SpaceIteratorBatchResult>
public SpaceIteratorBatchResult reduce(List<AsyncResult<SpaceIteratorBatchResult>> asyncResults) throws Exception
reduce
in interface AsyncResultsReducer<SpaceIteratorBatchResult,SpaceIteratorBatchResult>
Exception
public SpaceRequestInfo getSpaceRequestInfo()
getSpaceRequestInfo
in class SystemTask<SpaceIteratorBatchResult>
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class SystemDistributedTask<SpaceIteratorBatchResult>
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class SystemDistributedTask<SpaceIteratorBatchResult>
IOException
ClassNotFoundException
Copyright © GigaSpaces.