java.lang
Class InheritableThreadLocal<T>
java.lang.Object
java.lang.ThreadLocal<T>
java.lang.InheritableThreadLocal<T>
public class InheritableThreadLocal<T>
- extends ThreadLocal<T>
InheritableThreadLocal provides thread local variables that inherit
their default value from the parent thread.
- Since:
- 1.2
|
Method Summary |
protected T |
childValue(T parentValue)
childValue computes the initial value of an this inheritable
thread local variable as a function of the value of the parent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InheritableThreadLocal
public InheritableThreadLocal()
- Constructor for an inheritable thread local variable
childValue
protected T childValue(T parentValue)
- childValue computes the initial value of an this inheritable
thread local variable as a function of the value of the parent.
- Parameters:
parentValue - the parent value.
- Returns:
- the child's value, the default implementation returns an
unchanged parentValue.
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2015 aicas GmbH. All Rights Reserved.