|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ThreadLocalContextManager<C>
Manager for retrieving and storing a single object which represents all thread local state.
Objects returned by this interface are opaque to callers and are entirely managed by the host application. These
objects can be safely compared using Object.equals(Object).
| Method Summary | |
|---|---|
void |
clearThreadLocalContext()
Clear the thread local context on the current thread. |
C |
getThreadLocalContext()
Get the thread local context of the current thread. |
void |
setThreadLocalContext(C context)
Set the thread local context on the current thread. |
| Method Detail |
|---|
C getThreadLocalContext()
void setThreadLocalContext(C context)
context - The context to set
ClassCastException - if the given context is not an instance created via getThreadLocalContext().void clearThreadLocalContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||