软件包 | 描述 |
---|---|
java.lang |
提供对java编程语言的设计基础课。
|
Modifier and Type | Class and Description |
---|---|
class |
InheritableThreadLocal<T>
这类扩展
ThreadLocal提供从父线程的子线程继承值:当创建一个子线程,孩子会收到所有继承线程局部变量的值的初始值的父母。
|
Modifier and Type | Method and Description |
---|---|
static <S> ThreadLocal<S> |
ThreadLocal.withInitial(Supplier<? extends S> supplier)
创建一个线程局部变量。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.