public class SimpleDelegatingTask<T extends Serializable> extends Object implements DelegatingTask<T>, TaskRoutingProvider
Modifier | Constructor and Description |
---|---|
protected |
SimpleDelegatingTask() |
|
SimpleDelegatingTask(Task<T> task)
Constructs a new simple delegating task with the task to delegate to.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_readExternal(ObjectInput input) |
protected void |
_writeExternal(ObjectOutput output) |
T |
execute()
Simply delegates the execution to the provided delegated task.
|
Task<T> |
getDelegatedTask()
Returns the delegated task the task will execute to.
|
Object |
getRouting()
Tries to extract the routing information form the task.
|
public Task<T> getDelegatedTask()
getDelegatedTask
in interface DelegatingTask<T extends Serializable>
public Object getRouting()
getRouting
in interface TaskRoutingProvider
public T execute() throws Exception
execute
in interface Task<T extends Serializable>
Exception
- if unable to compute a resultprotected void _writeExternal(ObjectOutput output) throws IOException
IOException
protected void _readExternal(ObjectInput input) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright © GigaSpaces.