|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectFutureTask
org.mule.umo.FutureMessageResult
FutureMessageResult is an UMOMessage result of a remote invocation
on a Mule Server. This object makes the result available to the client code once
the request has been processed. This execution happens asynchronously.
| Constructor Summary | |
FutureMessageResult(Callable callable)
|
|
FutureMessageResult(Callable callable,
UMOTransformer transformer)
Deprecated. Please use FutureMessageResult(Callable) and configure
e.g with setExecutor(Executor) or
setTransformer(UMOTransformer) |
|
| Method Summary | |
void |
execute()
Start asynchronous execution of this task |
UMOMessage |
getMessage()
|
UMOMessage |
getMessage(long timeout)
|
void |
setExecutor(Executor e)
Set an ExecutorService to run this invocation. |
void |
setTransformer(UMOTransformer t)
Set a post-invocation transformer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FutureMessageResult(Callable callable)
public FutureMessageResult(Callable callable,
UMOTransformer transformer)
FutureMessageResult(Callable) and configure
e.g with setExecutor(Executor) or
setTransformer(UMOTransformer)
| Method Detail |
public void setTransformer(UMOTransformer t)
t - UMOTransformer to be applied to the result of this invocation. May be
null.public void setExecutor(Executor e)
e - the executor to be used.
IllegalArgumentException - when the executor is null or shutdown.
public UMOMessage getMessage()
throws InterruptedException,
ExecutionException,
TransformerException
InterruptedException
ExecutionException
TransformerException
public UMOMessage getMessage(long timeout)
throws InterruptedException,
ExecutionException,
TimeoutException,
TransformerException
InterruptedException
ExecutionException
TimeoutException
TransformerExceptionpublic void execute()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||