Class ResteasyThreadContext
java.lang.Object
org.jboss.resteasy.core.concurrent.ResteasyThreadContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncapture()
Captures the current context to be passed toThreadContext.push(Object)
before a thread executes.void
Pushes the context previously captured to the currently running thread.void
Resets the context on the current thread.
-
Constructor Details
-
ResteasyThreadContext
public ResteasyThreadContext()
-
-
Method Details
-
capture
Description copied from interface:ThreadContext
Captures the current context to be passed toThreadContext.push(Object)
before a thread executes.- Specified by:
capture
in interfaceThreadContext<Map<Class<?>,
Object>> - Returns:
- the current context
-
push
Description copied from interface:ThreadContext
Pushes the context previously captured to the currently running thread.- Specified by:
push
in interfaceThreadContext<Map<Class<?>,
Object>> - Parameters:
context
- the captured context to push
-
reset
Description copied from interface:ThreadContext
Resets the context on the current thread.- Specified by:
reset
in interfaceThreadContext<Map<Class<?>,
Object>> - Parameters:
context
- the captured context to reset
-