Class ConcurrentContext

java.lang.Object
org.jboss.as.ee.concurrent.ConcurrentContext

public class ConcurrentContext extends Object
Manages context handle factories, it is used by EE Context Services to save the invocation context.
Author:
Eduardo Martins
  • Field Details

    • CONTEXT_HANDLE_FACTORY_NAME

      public static final String CONTEXT_HANDLE_FACTORY_NAME
      the name of the factory used by the chained context handles
      See Also:
  • Constructor Details

    • ConcurrentContext

      public ConcurrentContext()
  • Method Details

    • pushCurrent

      public static void pushCurrent(ConcurrentContext context)
      Sets the specified context as the current one, in the current thread.
      Parameters:
      context - The current context
    • popCurrent

      public static ConcurrentContext popCurrent()
      Pops the current context in the current thread.
      Returns:
    • current

      public static ConcurrentContext current()
      Retrieves the current context in the current thread.
      Returns:
    • setServiceName

      public void setServiceName(org.jboss.msc.service.ServiceName serviceName)
      Parameters:
      serviceName -
    • addFactory

      public void addFactory(ContextHandleFactory factory)
      Adds a new factory.
      Parameters:
      factory -
    • saveContext

      public SetupContextHandle saveContext(jakarta.enterprise.concurrent.ContextService contextService, Map<String,String> contextObjectProperties)
      Saves the current invocation context on a chained context handle.
      Parameters:
      contextService -
      contextObjectProperties -
      Returns: