public interface ThreadContextListener
Modifier and Type | Method and Description |
---|---|
void |
contextEntered(ThreadContext oldContext,
ThreadContext newContext)
A new context has been entered.
|
void |
contextExited(ThreadContext exitedContext,
ThreadContext reenteredContext)
A context has exited.
|
void contextEntered(ThreadContext oldContext, ThreadContext newContext)
oldContext
- the old context that was associated with the threadnewContext
- the new context that is now associated with the threadvoid contextExited(ThreadContext exitedContext, ThreadContext reenteredContext)
exitedContext
- the context that was exitedreenteredContext
- the context that is not associated with the thread