org.jboss.ejb3.common.proxy.plugins.async
Class AsyncProcessor

java.lang.Object
  extended by org.jboss.ejb3.common.proxy.plugins.async.AsyncProcessor
All Implemented Interfaces:
AsyncProvider, ChainableProcessor

public class AsyncProcessor
extends java.lang.Object
implements ChainableProcessor, AsyncProvider

AsyncProcessor A processor that invokes upon the chain in a separate Thread, saving a reference to the Future result


Constructor Summary
AsyncProcessor()
           
 
Method Summary
 java.util.concurrent.Future<?> getFutureResult()
          Obtains the result of the last asynchronous invocation performed as a Future
 java.lang.Object invoke(ChainedProcessingInvocationHandler chain, java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          Invokes this handler with the specified arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncProcessor

public AsyncProcessor()
Method Detail

invoke

public java.lang.Object invoke(ChainedProcessingInvocationHandler chain,
                               java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Description copied from interface: ChainableProcessor
Invokes this handler with the specified arguments. Processing may be performed before or after the rest of the chain depending upon when "chain.invokeNext()" is executed.

Specified by:
invoke in interface ChainableProcessor
Returns:
Throws:
java.lang.Throwable

getFutureResult

public java.util.concurrent.Future<?> getFutureResult()
Obtains the result of the last asynchronous invocation performed as a Future

Specified by:
getFutureResult in interface AsyncProvider
Returns: