English | Site Directory

Android - An Open Handset Alliance Project

java.lang
public class

java.lang.InheritableThreadLocal

java.lang.Object
java.lang.ThreadLocal
java.lang.InheritableThreadLocal

An InheritableThreadLocal is very similar to a ThreadLocal, with the added functionality that a child Thread inherits all InheritableThreadLocal from its parent Thread upon Thread creation time.

See Also

Summary

Public Constructors

          InheritableThreadLocal()
Constructs a new InheritableThreadLocal object

Protected Methods

        T  childValue(T parentValue)
Computes the created Thread's initial value for this InheritableThreadLocal based on the current value of the same local on the creator Thread.
Methods inherited from class java.lang.ThreadLocal
Methods inherited from class java.lang.Object

Details

Public Constructors

public InheritableThreadLocal()

Constructs a new InheritableThreadLocal object

Protected Methods

protected T childValue(T parentValue)

Computes the created Thread's initial value for this InheritableThreadLocal based on the current value of the same local on the creator Thread.
Build m5-rc15i - 10 Jun 2008 13:54