aicas logoJamaica 6.1 release 1

java.lang
Class InheritableThreadLocal<T>

java.lang.Object
  extended by java.lang.ThreadLocal<T>
      extended by 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

Constructor Summary
InheritableThreadLocal()
          Constructor for an inheritable thread local variable
 
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.ThreadLocal
get, initialValue, remove, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InheritableThreadLocal

public InheritableThreadLocal()
Constructor for an inheritable thread local variable

Method Detail

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 logoJamaica 6.1 release 1

aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2012 aicas GmbH. All Rights Reserved.