public interface ContextStrategy
| Modifier and Type | Method and Description |
|---|---|
void |
attachContextForThread(Thread thread)
Attaches the context that was previously saved for the specified thread.
|
void |
saveContextForThread(Thread thread)
Saves the context that is associated with the current scope.
|
Runnable |
wrapInCurrentContext(Runnable runnable)
Wraps a
Runnable so that it executes with the context that is associated with the
current scope. |
Runnable wrapInCurrentContext(Runnable runnable)
Runnable so that it executes with the context that is associated with the
current scope.void saveContextForThread(Thread thread)
The context will be attached when entering the specified thread's Thread.run()
method.
thread - a Thread object