org.jboss.ejb3.common.proxy.plugins.async
Class AsyncInterceptor
java.lang.Object
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
|
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 |
AsyncInterceptor
public AsyncInterceptor()
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: