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

java.lang.Object
  extended by org.jboss.ejb3.common.proxy.plugins.async.AsyncInterceptor
All Implemented Interfaces:
org.jboss.aop.advice.Interceptor, AsyncProvider

public class AsyncInterceptor
extends java.lang.Object
implements org.jboss.aop.advice.Interceptor, AsyncProvider

AsyncInterceptor An interceptor that invokes upon the chain in a separate Thread, saving a reference to the Future result


Constructor Summary
AsyncInterceptor()
           
 
Method Summary
 java.util.concurrent.Future<?> getFutureResult()
          Obtains the result of the last asynchronous invocation performed as a Future
 java.lang.String getName()
           
 java.lang.Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncInterceptor

public AsyncInterceptor()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface org.jboss.aop.advice.Interceptor

invoke

public java.lang.Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
                        throws java.lang.Throwable
Specified by:
invoke in interface org.jboss.aop.advice.Interceptor
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: