Package io.netty.util.internal
Class InternalThreadLocalMap
- java.lang.Object
-
- io.netty.util.internal.InternalThreadLocalMap
-
public final class InternalThreadLocalMap extends java.lang.Object
The internal data structure that stores the thread-local variables for Netty and allFastThreadLocal
s. Note that this class is for internal use only and is subject to change at any time. UseFastThreadLocal
unless you know what you are doing.
-
-
Field Summary
Fields Modifier and Type Field Description long
rp1
Deprecated.These padding fields will be removed in the future.long
rp2
Deprecated.These padding fields will be removed in the future.long
rp3
Deprecated.These padding fields will be removed in the future.long
rp4
Deprecated.These padding fields will be removed in the future.long
rp5
Deprecated.These padding fields will be removed in the future.long
rp6
Deprecated.These padding fields will be removed in the future.long
rp7
Deprecated.These padding fields will be removed in the future.long
rp8
Deprecated.These padding fields will be removed in the future.static java.lang.Object
UNSET
Internal use only.static int
VARIABLES_TO_REMOVE_INDEX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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()
Deprecated.static void
destroy()
int
futureListenerStackDepth()
static InternalThreadLocalMap
get()
java.lang.Object
getAndSetIndexedVariable(int index, java.lang.Object value)
static InternalThreadLocalMap
getIfSet()
java.util.Map<java.lang.Class<?>,java.lang.Boolean>
handlerSharableCache()
java.lang.Object
indexedVariable(int index)
boolean
isCleanerFlagSet(int index)
boolean
isIndexedVariableSet(int index)
static int
lastVariableIndex()
int
localChannelReaderStackDepth()
static int
nextVariableIndex()
ThreadLocalRandom
random()
static void
remove()
java.lang.Object
removeIndexedVariable(int index)
void
setCleanerFlag(int index)
void
setCounterHashCode(IntegerHolder counterHashCode)
Deprecated.void
setFutureListenerStackDepth(int futureListenerStackDepth)
boolean
setIndexedVariable(int index, java.lang.Object value)
void
setLocalChannelReaderStackDepth(int localChannelReaderStackDepth)
int
size()
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()
-
-
-
Field Detail
-
VARIABLES_TO_REMOVE_INDEX
public static final int VARIABLES_TO_REMOVE_INDEX
-
UNSET
public static final java.lang.Object UNSET
Internal use only.
-
rp1
public long rp1
Deprecated.These padding fields will be removed in the future.
-
rp2
public long rp2
Deprecated.These padding fields will be removed in the future.
-
rp3
public long rp3
Deprecated.These padding fields will be removed in the future.
-
rp4
public long rp4
Deprecated.These padding fields will be removed in the future.
-
rp5
public long rp5
Deprecated.These padding fields will be removed in the future.
-
rp6
public long rp6
Deprecated.These padding fields will be removed in the future.
-
rp7
public long rp7
Deprecated.These padding fields will be removed in the future.
-
rp8
public long rp8
Deprecated.These padding fields will be removed in the future.
-
-
Method Detail
-
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()
-
size
public int size()
-
stringBuilder
public java.lang.StringBuilder stringBuilder()
-
charsetEncoderCache
public java.util.Map<java.nio.charset.Charset,java.nio.charset.CharsetEncoder> charsetEncoderCache()
-
charsetDecoderCache
public java.util.Map<java.nio.charset.Charset,java.nio.charset.CharsetDecoder> charsetDecoderCache()
-
arrayList
public <E> java.util.ArrayList<E> arrayList()
-
arrayList
public <E> java.util.ArrayList<E> arrayList(int minCapacity)
-
futureListenerStackDepth
public int futureListenerStackDepth()
-
setFutureListenerStackDepth
public void setFutureListenerStackDepth(int futureListenerStackDepth)
-
random
public ThreadLocalRandom random()
-
typeParameterMatcherGetCache
public java.util.Map<java.lang.Class<?>,TypeParameterMatcher> typeParameterMatcherGetCache()
-
typeParameterMatcherFindCache
public java.util.Map<java.lang.Class<?>,java.util.Map<java.lang.String,TypeParameterMatcher>> typeParameterMatcherFindCache()
-
counterHashCode
@Deprecated public IntegerHolder counterHashCode()
Deprecated.
-
setCounterHashCode
@Deprecated public void setCounterHashCode(IntegerHolder counterHashCode)
Deprecated.
-
handlerSharableCache
public java.util.Map<java.lang.Class<?>,java.lang.Boolean> handlerSharableCache()
-
localChannelReaderStackDepth
public int localChannelReaderStackDepth()
-
setLocalChannelReaderStackDepth
public void setLocalChannelReaderStackDepth(int localChannelReaderStackDepth)
-
indexedVariable
public java.lang.Object indexedVariable(int index)
-
setIndexedVariable
public boolean setIndexedVariable(int index, java.lang.Object value)
- Returns:
true
if and only if a new thread-local variable has been created
-
getAndSetIndexedVariable
public java.lang.Object getAndSetIndexedVariable(int index, java.lang.Object value)
- Returns:
UNSET
if and only if a new thread-local variable has been created.
-
removeIndexedVariable
public java.lang.Object removeIndexedVariable(int index)
-
isIndexedVariableSet
public boolean isIndexedVariableSet(int index)
-
isCleanerFlagSet
public boolean isCleanerFlagSet(int index)
-
setCleanerFlag
public void setCleanerFlag(int index)
-
-