public final class ThreadShareUtils
extends java.lang.Object
| 构造器和说明 |
|---|
ThreadShareUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
get()
get the thread shared data.
|
static <T> T |
get(java.lang.String name)
get share data.
|
static <T> T |
getRemove()
get and remove the thread shared data.
|
static <T> T |
getRemove(java.lang.String name)
get and remove the thread shared data.
|
static <T> void |
put(java.lang.String name,
T data)
put the data to thread share.
|
static <T> void |
put(T data)
put data to thread share.
|
public static <T> void put(T data)
T - the data typedata - the datapublic static <T> void put(java.lang.String name,
T data)
T - the data typename - the namedata - the datapublic static <T> T get()
T - the data typepublic static <T> T get(java.lang.String name)
T - the data typename - the namepublic static <T> T getRemove()
T - the data typepublic static <T> T getRemove(java.lang.String name)
T - the data typename - the nameCopyright © 2021 The Apache Software Foundation. All rights reserved.