public class ConcurrentContext extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_HANDLE_FACTORY_NAME
the name of the factory used by the chained context handles
|
Constructor and Description |
---|
ConcurrentContext() |
Modifier and Type | Method and Description |
---|---|
void |
addFactory(ContextHandleFactory factory)
Adds a new factory.
|
static ConcurrentContext |
current()
Retrieves the current context in the current thread.
|
static ConcurrentContext |
popCurrent()
Pops the current context in the current thread.
|
static void |
pushCurrent(ConcurrentContext context)
Sets the specified context as the current one, in the current thread.
|
SetupContextHandle |
saveContext(javax.enterprise.concurrent.ContextService contextService,
Map<String,String> contextObjectProperties)
Saves the current invocation context on a chained context handle.
|
void |
setServiceName(org.jboss.msc.service.ServiceName serviceName) |
public static final String CONTEXT_HANDLE_FACTORY_NAME
public static void pushCurrent(ConcurrentContext context)
context
- The current contextpublic static ConcurrentContext popCurrent()
public static ConcurrentContext current()
public void setServiceName(org.jboss.msc.service.ServiceName serviceName)
serviceName
- public void addFactory(ContextHandleFactory factory)
factory
- public SetupContextHandle saveContext(javax.enterprise.concurrent.ContextService contextService, Map<String,String> contextObjectProperties)
contextService
- contextObjectProperties
- Copyright © 2017 JBoss by Red Hat. All rights reserved.