ThreadLocal-based context storage implementation. Used by default.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final ThreadLocal | localContext
Currently bound context. |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Context | |
| public void | detach(Context
the context to be detached. Should be, or be equivalent to, the current
context of the current scope toDetach, Context the context to be the current. Should be, or be equivalent to, the context
of the outer scope toRestore)Implements abstract io. io..
|
| public Context | doAttach(Context
the context to be attached toAttach)Implements abstract io. io..
|
| localContext | back to summary |
|---|---|
| pack-priv static final ThreadLocal<Context> localContext Currently bound context. | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| ThreadLocalContextStorage | back to summary |
|---|---|
| pack-priv ThreadLocalContextStorage() | |
| current | back to summary |
|---|---|
| public Context current() Implements abstract io. Doc from io. Implements Caution: See also | |
| detach | back to summary |
|---|---|
| public void detach(Context toDetach, Context toRestore) Implements abstract io. Doc from io. Implements | |
| doAttach | back to summary |
|---|---|
| public Context doAttach(Context toAttach) Implements abstract io. Doc from io. Implements Caution: See also:
| |