public final class WorkContextCache
extends java.lang.Object
WorkContexts associated with runtime threads.
On runtimes with managed thread pools, the cache uses Fabric3Thread to store the context; on other runtimes a thread local is used.| Modifier and Type | Method and Description |
|---|---|
static WorkContext |
getAndResetThreadWorkContext()
Resets and returns the WorkContext for the current thread.
|
static WorkContext |
getThreadWorkContext()
Returns the WorkContext for the current thread.
|
public static WorkContext getThreadWorkContext()
public static WorkContext getAndResetThreadWorkContext()