public abstract class AbstractDelegatingDistributedTask<T extends Serializable,R> extends SimpleDelegatingTask<T> implements DistributedTask<T,R>, AsyncResultFilter<T>
AsyncResultFilter.Decision
Modifier | Constructor and Description |
---|---|
protected |
AbstractDelegatingDistributedTask() |
|
AbstractDelegatingDistributedTask(Task<T> task) |
|
AbstractDelegatingDistributedTask(Task<T> task,
AsyncResultFilter<T> filter) |
Modifier and Type | Method and Description |
---|---|
protected void |
_readExternal(ObjectInput input) |
protected void |
_writeExternal(ObjectOutput output) |
protected AsyncResultFilter<T> |
getFilter() |
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.
|
execute, getDelegatedTask, getRouting
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reduce
protected AbstractDelegatingDistributedTask()
public AbstractDelegatingDistributedTask(Task<T> task, AsyncResultFilter<T> filter)
public AsyncResultFilter.Decision onResult(AsyncResultFilterEvent<T> event)
AsyncResultFilter
onResult
in interface AsyncResultFilter<T extends Serializable>
protected AsyncResultFilter<T> getFilter()
protected void _writeExternal(ObjectOutput output) throws IOException
_writeExternal
in class SimpleDelegatingTask<T extends Serializable>
IOException
protected void _readExternal(ObjectInput input) throws IOException, ClassNotFoundException
_readExternal
in class SimpleDelegatingTask<T extends Serializable>
IOException
ClassNotFoundException
Copyright © GigaSpaces.