ix.util.context
Class InheritableThreadLocalHoldingStrategy
java.lang.Object
|
+--ix.util.context.ContextHoldingStrategy
|
+--ix.util.context.ThreadLocalHoldingStrategy
|
+--ix.util.context.InheritableThreadLocalHoldingStrategy
- public class InheritableThreadLocalHoldingStrategy
- extends ThreadLocalHoldingStrategy
A context-holding strategy that associates context-holders with
threads, with inheritance from the parent thread. Although the
holder for a thread is inherited from the thread's parent, it
may be explicitly set to a different value.
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
threadContextHolder
java.lang.ThreadLocal threadContextHolder
InheritableThreadLocalHoldingStrategy
public InheritableThreadLocalHoldingStrategy()
getContextHolder
public ContextHolder getContextHolder()
- Description copied from class:
ContextHoldingStrategy
- Returns an appropriate context-holder.
- Overrides:
getContextHolder
in class ThreadLocalHoldingStrategy
setContextHolder
public void setContextHolder(ContextHolder h)
- Description copied from class:
ContextHoldingStrategy
- Changes the context-holder that would be returned, if that
makes sense. (Optional operation.)
- Overrides:
setContextHolder
in class ThreadLocalHoldingStrategy
- Following copied from class:
ix.util.context.ContextHoldingStrategy
- Throws:
UnsupportedOperationException
- if the
setContextHolder
method is not supported.