@LoadLevel(name="thread-local", order=10) public class ThreadLocalContextImpl extends Object implements Context
ThreadLocal 的上下文| Constructor and Description |
|---|
ThreadLocalContextImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
清空上下文
|
boolean |
containsKey(String key)
是否含有键
|
Map<String,Object> |
entries()
获取所有上下文
|
<V> V |
get(String key)
获取值
|
protected Map<String,Object> |
map() |
<V> V |
put(String key,
V value)
设置值
|
<V> V |
remove(String key)
移除值
|
public boolean containsKey(String key)
ContextcontainsKey in interface Contextkey - 键@NonNull public Map<String,Object> entries()
ContextCopyright © 2021–2022 EasyJ开源社区. All rights reserved.