| Modifier and Type | Field and Description |
|---|---|
| public static final ContextHandler | NONE
The context handler which captures no context. |
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: the captured contextCapture the current context from the submitting thread. |
| public void | runWith(Runnable
the task to run (not task, T null)the context returned from context)captureContext()Run the given task with the given captured context. |
| NONE | back to summary |
|---|---|
| public static final ContextHandler<?> NONE The context handler which captures no context. | |
| captureContext | back to summary |
|---|---|
| public T captureContext() Capture the current context from the submitting thread.
| |
| runWith | back to summary |
|---|---|
| public void runWith(Runnable task, T context) Run the given task with the given captured context. The context should be cleared when this method returns.
| |