加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090303144403/http://developer.android.com:80/reference/java/lang/InheritableThreadLocal.html
public class

InheritableThreadLocal

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

Class Overview

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

Summary

Public Constructors
InheritableThreadLocal()
Creates a new inheritable thread local variable.
Protected Methods
T childValue(T parentValue)
Creates a value for the child thread given the parent thread's value.
[Expand]
Inherited Methods
From class java.lang.ThreadLocal
From class java.lang.Object

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.