Android
java.lang
public class

java.lang.InheritableThreadLocal<T>

java.lang.Object
java.lang.ThreadLocal<T>
java.lang.InheritableThreadLocal<T>

A variable for which each thread has its own value; child threads will inherit the value at thread creation time.

See Also

Summary

Public Constructors

            InheritableThreadLocal()
Creates a new inheritable thread local variable.

Protected Methods

          childValue(T parentValue)
Creates a value for the child thread given the parent thread's value.
Methods inherited from class java.lang.ThreadLocal
Methods inherited from class java.lang.Object

Details

Public Constructors

public InheritableThreadLocal()

Creates a new inheritable thread local variable.

Protected Methods

protected T childValue(T parentValue)

Creates a value for the child thread given the parent thread's value. Called from the parent thread when creating a child thread. The default implementation returns the parent thread's value.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56