Class AsyncFutureInterceptorFactory

java.lang.Object
org.jboss.as.ejb3.component.interceptors.AsyncFutureInterceptorFactory
All Implemented Interfaces:
org.jboss.invocation.InterceptorFactory

public final class AsyncFutureInterceptorFactory extends Object implements org.jboss.invocation.InterceptorFactory
An asynchronous execution interceptor for methods returning Future. Because asynchronous invocations necessarily run in a concurrent thread, any thread context setup interceptors should run after this interceptor to prevent that context from becoming lost. This interceptor should be associated with the client interceptor stack.

Cancellation notification is accomplished via the CancellationFlag private data attachment. This interceptor will create and attach a new cancellation flag, which will be set to true if the request was cancelled.

This interceptor should only be used for local invocations.

Author:
Stuart Douglas, David M. Lloyd
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.jboss.invocation.InterceptorFactory
     

    Fields inherited from interface org.jboss.invocation.InterceptorFactory

    EMPTY_ARRAY
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jboss.invocation.Interceptor
    create(org.jboss.invocation.InterceptorFactoryContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INSTANCE

      public static final org.jboss.invocation.InterceptorFactory INSTANCE
  • Method Details

    • create

      public org.jboss.invocation.Interceptor create(org.jboss.invocation.InterceptorFactoryContext context)
      Specified by:
      create in interface org.jboss.invocation.InterceptorFactory