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 Object
implements ChainableProcessor, AsyncProvider

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

Version:
$Revision: $
Author:
ALR

Constructor Summary
AsyncProcessor()
           
 
Method Summary
 Future<?> getFutureResult()
          Obtains the result of the last asynchronous invocation performed as a Future
 Object invoke(ChainedProcessingInvocationHandler chain, Object proxy, Method method, 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 Object invoke(ChainedProcessingInvocationHandler chain,
                     Object proxy,
                     Method method,
                     Object[] args)
              throws 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:
Throwable

getFutureResult

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

Specified by:
getFutureResult in interface AsyncProvider
Returns:


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.