org.mule.umo
Class FutureMessageResult

java.lang.Object
  extended byFutureResult
      extended byorg.mule.umo.FutureMessageResult

public class FutureMessageResult
extends FutureResult

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.

Version:
$Revision: 1.2 $
Author:
Ross Mason
See Also:
Serialized Form

Constructor Summary
FutureMessageResult()
           
FutureMessageResult(UMOTransformer transformer)
           
 
Method Summary
 void execute(Callable callable)
          A convenience method for executing a task.
 UMOMessage getMessage()
           
 UMOMessage getMessage(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureMessageResult

public FutureMessageResult()

FutureMessageResult

public FutureMessageResult(UMOTransformer transformer)
Method Detail

getMessage

public UMOMessage getMessage()
                      throws java.lang.reflect.InvocationTargetException,
                             java.lang.InterruptedException,
                             TransformerException
Throws:
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
TransformerException

getMessage

public UMOMessage getMessage(long timeout)
                      throws java.lang.reflect.InvocationTargetException,
                             java.lang.InterruptedException,
                             TransformerException
Throws:
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
TransformerException

execute

public void execute(Callable callable)
A convenience method for executing a task. This is not as efficient as loading a thread from a pool so should not be used frequently

Parameters:
callable - the Action to execute


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.