|
GigaSpaces XAP 7.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.core.executor.support.SimpleDelegatingTask<T>
public class SimpleDelegatingTask<T extends Serializable>
A simple impelemntation of delegating task that accepts the task to delegate to.
| Constructor Summary | |
|---|---|
protected |
SimpleDelegatingTask()
|
|
SimpleDelegatingTask(Task<T> task)
Constructs a new simple delegating task with the task to delegate to. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SimpleDelegatingTask()
public SimpleDelegatingTask(Task<T> task)
| Method Detail |
|---|
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 result
protected void _writeExternal(ObjectOutput output)
throws IOException
IOException
protected void _readExternal(ObjectInput input)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundException
|
GigaSpaces XAP 7.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||