类 InternalThreadLocalMap
- java.lang.Object
-
- com.alibaba.dubbo.common.threadlocal.InternalThreadLocalMap
-
public final class InternalThreadLocalMap extends Object
The internal data structure that stores the threadLocal variables for Netty and allInternalThread
s. Note that this class is for internal use only. UseInternalThread
unless you know what you are doing.
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static void
destroy()
static InternalThreadLocalMap
get()
static InternalThreadLocalMap
getIfSet()
Object
indexedVariable(int index)
static int
lastVariableIndex()
static int
nextVariableIndex()
static void
remove()
Object
removeIndexedVariable(int index)
boolean
setIndexedVariable(int index, Object value)
int
size()
-
-
-
字段详细资料
-
UNSET
public static final Object UNSET
-
-
方法详细资料
-
getIfSet
public static InternalThreadLocalMap getIfSet()
-
get
public static InternalThreadLocalMap get()
-
remove
public static void remove()
-
destroy
public static void destroy()
-
nextVariableIndex
public static int nextVariableIndex()
-
lastVariableIndex
public static int lastVariableIndex()
-
indexedVariable
public Object indexedVariable(int index)
-
setIndexedVariable
public boolean setIndexedVariable(int index, Object value)
- 返回:
true
if and only if a new thread-local variable has been created
-
removeIndexedVariable
public Object removeIndexedVariable(int index)
-
size
public int size()
-
-