public final class InternalThreadLocalMap extends UnpaddedInternalThreadLocalMap
FastThreadLocal
s.
Note that this class is for internal use only and is subject to change at any time. Use FastThreadLocal
unless you know what you are doing.Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_ARRAY_LIST_INITIAL_CAPACITY |
long |
rp1 |
long |
rp2 |
long |
rp3 |
long |
rp4 |
long |
rp5 |
long |
rp6 |
long |
rp7 |
long |
rp8 |
long |
rp9 |
static java.lang.Object |
UNSET |
arrayList, charsetDecoderCache, charsetEncoderCache, counterHashCode, futureListenerStackDepth, handlerSharableCache, indexedVariables, localChannelReaderStackDepth, nextIndex, random, slowThreadLocalMap, stringBuilder, typeParameterMatcherFindCache, typeParameterMatcherGetCache
Modifier | Constructor and Description |
---|---|
private |
InternalThreadLocalMap() |
Modifier and Type | Method and Description |
---|---|
<E> java.util.ArrayList<E> |
arrayList() |
<E> java.util.ArrayList<E> |
arrayList(int minCapacity) |
java.util.Map<java.nio.charset.Charset,java.nio.charset.CharsetDecoder> |
charsetDecoderCache() |
java.util.Map<java.nio.charset.Charset,java.nio.charset.CharsetEncoder> |
charsetEncoderCache() |
IntegerHolder |
counterHashCode() |
static void |
destroy() |
private void |
expandIndexedVariableTableAndSet(int index,
java.lang.Object value) |
private static InternalThreadLocalMap |
fastGet(FastThreadLocalThread thread) |
int |
futureListenerStackDepth() |
static InternalThreadLocalMap |
get() |
static InternalThreadLocalMap |
getIfSet() |
java.util.Map<java.lang.Class<?>,java.lang.Boolean> |
handlerSharableCache() |
java.lang.Object |
indexedVariable(int index) |
boolean |
isIndexedVariableSet(int index) |
static int |
lastVariableIndex() |
int |
localChannelReaderStackDepth() |
private static java.lang.Object[] |
newIndexedVariableTable() |
static int |
nextVariableIndex() |
ThreadLocalRandom |
random() |
static void |
remove() |
java.lang.Object |
removeIndexedVariable(int index) |
void |
setCounterHashCode(IntegerHolder counterHashCode) |
void |
setFutureListenerStackDepth(int futureListenerStackDepth) |
boolean |
setIndexedVariable(int index,
java.lang.Object value) |
void |
setLocalChannelReaderStackDepth(int localChannelReaderStackDepth) |
int |
size() |
private static InternalThreadLocalMap |
slowGet() |
java.lang.StringBuilder |
stringBuilder() |
java.util.Map<java.lang.Class<?>,java.util.Map<java.lang.String,TypeParameterMatcher>> |
typeParameterMatcherFindCache() |
java.util.Map<java.lang.Class<?>,TypeParameterMatcher> |
typeParameterMatcherGetCache() |
private static final int DEFAULT_ARRAY_LIST_INITIAL_CAPACITY
public static final java.lang.Object UNSET
public long rp1
public long rp2
public long rp3
public long rp4
public long rp5
public long rp6
public long rp7
public long rp8
public long rp9
public static InternalThreadLocalMap getIfSet()
public static InternalThreadLocalMap get()
private static InternalThreadLocalMap fastGet(FastThreadLocalThread thread)
private static InternalThreadLocalMap slowGet()
public static void remove()
public static void destroy()
public static int nextVariableIndex()
public static int lastVariableIndex()
private static java.lang.Object[] newIndexedVariableTable()
public int size()
public java.lang.StringBuilder stringBuilder()
public java.util.Map<java.nio.charset.Charset,java.nio.charset.CharsetEncoder> charsetEncoderCache()
public java.util.Map<java.nio.charset.Charset,java.nio.charset.CharsetDecoder> charsetDecoderCache()
public <E> java.util.ArrayList<E> arrayList()
public <E> java.util.ArrayList<E> arrayList(int minCapacity)
public int futureListenerStackDepth()
public void setFutureListenerStackDepth(int futureListenerStackDepth)
public ThreadLocalRandom random()
public java.util.Map<java.lang.Class<?>,TypeParameterMatcher> typeParameterMatcherGetCache()
public java.util.Map<java.lang.Class<?>,java.util.Map<java.lang.String,TypeParameterMatcher>> typeParameterMatcherFindCache()
public IntegerHolder counterHashCode()
public void setCounterHashCode(IntegerHolder counterHashCode)
public java.util.Map<java.lang.Class<?>,java.lang.Boolean> handlerSharableCache()
public int localChannelReaderStackDepth()
public void setLocalChannelReaderStackDepth(int localChannelReaderStackDepth)
public java.lang.Object indexedVariable(int index)
public boolean setIndexedVariable(int index, java.lang.Object value)
true
if and only if a new thread-local variable has been createdprivate void expandIndexedVariableTableAndSet(int index, java.lang.Object value)
public java.lang.Object removeIndexedVariable(int index)
public boolean isIndexedVariableSet(int index)