public class FutureMessageResult
extends edu.emory.mathcs.backport.java.util.concurrent.FutureTask
FutureMessageResult
is an MuleMessage 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 and Description |
---|
FutureMessageResult(edu.emory.mathcs.backport.java.util.concurrent.Callable callable) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Start asynchronous execution of this task
|
MuleMessage |
getMessage() |
MuleMessage |
getMessage(long timeout) |
void |
setExecutor(edu.emory.mathcs.backport.java.util.concurrent.Executor e)
Set an ExecutorService to run this invocation.
|
void |
setTransformers(List t)
Set a post-invocation transformer.
|
public FutureMessageResult(edu.emory.mathcs.backport.java.util.concurrent.Callable callable)
public void setExecutor(edu.emory.mathcs.backport.java.util.concurrent.Executor e)
e
- the executor to be used.IllegalArgumentException
- when the executor is null or shutdown.public void setTransformers(List t)
t
- UMOTransformers to be applied to the result of this invocation. May be
null.public MuleMessage getMessage() throws InterruptedException, edu.emory.mathcs.backport.java.util.concurrent.ExecutionException, TransformerException
InterruptedException
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException
TransformerException
public MuleMessage getMessage(long timeout) throws InterruptedException, edu.emory.mathcs.backport.java.util.concurrent.ExecutionException, edu.emory.mathcs.backport.java.util.concurrent.TimeoutException, TransformerException
InterruptedException
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException
edu.emory.mathcs.backport.java.util.concurrent.TimeoutException
TransformerException
public void execute()
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.