public class InternalDistributedSpaceTaskWrapper<T extends Serializable,R> extends InternalSpaceTaskWrapper<T> implements DistributedSpaceTask<T,R>, AsyncResultFilter<T>
DistributedSpaceTask
that wraps the
actual Task
to be executed.AsyncResultFilter.Decision
Constructor and Description |
---|
InternalDistributedSpaceTaskWrapper() |
InternalDistributedSpaceTaskWrapper(DistributedTask<T,R> task) |
Modifier and Type | Method and Description |
---|---|
AsyncResultFilter.Decision |
onResult(AsyncResultFilterEvent<T> 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) |
R |
reduce(List<AsyncResult<T>> asyncResults) |
void |
writeExternal(ObjectOutput out) |
execute, getRouting, getSupportCodeChangeAnnotationContainer, getTask, getWrappedTask, setRouting
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enabledSmartExternalizableWithReference
public InternalDistributedSpaceTaskWrapper()
public InternalDistributedSpaceTaskWrapper(DistributedTask<T,R> task)
public R reduce(List<AsyncResult<T>> asyncResults) throws Exception
reduce
in interface AsyncResultsReducer<T extends Serializable,R>
Exception
public AsyncResultFilter.Decision onResult(AsyncResultFilterEvent<T> event)
AsyncResultFilter
onResult
in interface AsyncResultFilter<T extends Serializable>
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class InternalSpaceTaskWrapper<T extends Serializable>
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class InternalSpaceTaskWrapper<T extends Serializable>
IOException
ClassNotFoundException
Copyright © GigaSpaces.