public final class InternalThreadLocalMap extends Object
InternalThreads.
Note that this class is for internal use only. Use InternalThread
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() |
public static final Object UNSET
public static InternalThreadLocalMap getIfSet()
public static InternalThreadLocalMap get()
public static void remove()
public static void destroy()
public static int nextVariableIndex()
public static int lastVariableIndex()
public Object indexedVariable(int index)
public boolean setIndexedVariable(int index,
Object value)
true if and only if a new thread-local variable has been createdpublic Object removeIndexedVariable(int index)
public int size()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.