Represents context that is applied to a particular thread, along with any state that is associated with it or that is necessary for restoring the previous context afterward.
When the context is no longer needed on the thread, the
ManagedExecutor or ThreadContext must invoke the
endContext method.
| Modifier and Type | Method and Description |
|---|---|
| public void | endContext()
Invoked by the |
| endContext | back to summary |
|---|---|
| public void endContext() throws IllegalStateException Invoked by the Typically, patterns such as the following will be observed:
However, more advanced sequences such as the following are also valid:
| |