Class InternalThreadLocalMap
java.lang.Object
io.netty.util.internal.InternalThreadLocalMap
The internal data structure that stores the thread-local variables for Netty and all
FastThreadLocals.
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionlongDeprecated.These padding fields will be removed in the future.longDeprecated.These padding fields will be removed in the future.longDeprecated.These padding fields will be removed in the future.longDeprecated.These padding fields will be removed in the future.longDeprecated.These padding fields will be removed in the future.longDeprecated.These padding fields will be removed in the future.longDeprecated.These padding fields will be removed in the future.longDeprecated.These padding fields will be removed in the future.static final ObjectInternal use only.static final int -
Method Summary
Modifier and TypeMethodDescription<E> ArrayList<E> <E> ArrayList<E> arrayList(int minCapacity) Deprecated.static voiddestroy()intstatic InternalThreadLocalMapget()getAndSetIndexedVariable(int index, Object value) static InternalThreadLocalMapgetIfSet()indexedVariable(int index) booleanisCleanerFlagSet(int index) Deprecated.booleanisIndexedVariableSet(int index) static intintstatic intrandom()Deprecated.UseThreadLocalRandom.current()instead.static voidremove()removeIndexedVariable(int index) voidsetCleanerFlag(int index) Deprecated.voidsetCounterHashCode(IntegerHolder counterHashCode) Deprecated.voidsetFutureListenerStackDepth(int futureListenerStackDepth) booleansetIndexedVariable(int index, Object value) voidsetLocalChannelReaderStackDepth(int localChannelReaderStackDepth) intsize()Map<Class<?>, Map<String, TypeParameterMatcher>> Map<Class<?>, TypeParameterMatcher>
-
Field Details
-
VARIABLES_TO_REMOVE_INDEX
public static final int VARIABLES_TO_REMOVE_INDEX -
UNSET
Internal use only. -
rp1
public long rp1Deprecated.These padding fields will be removed in the future. -
rp2
public long rp2Deprecated.These padding fields will be removed in the future. -
rp3
public long rp3Deprecated.These padding fields will be removed in the future. -
rp4
public long rp4Deprecated.These padding fields will be removed in the future. -
rp5
public long rp5Deprecated.These padding fields will be removed in the future. -
rp6
public long rp6Deprecated.These padding fields will be removed in the future. -
rp7
public long rp7Deprecated.These padding fields will be removed in the future. -
rp8
public long rp8Deprecated.These padding fields will be removed in the future.
-
-
Method Details
-
getIfSet
-
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
-
charsetEncoderCache
-
charsetDecoderCache
-
arrayList
-
arrayList
-
futureListenerStackDepth
public int futureListenerStackDepth() -
setFutureListenerStackDepth
public void setFutureListenerStackDepth(int futureListenerStackDepth) -
random
Deprecated.UseThreadLocalRandom.current()instead. -
typeParameterMatcherGetCache
-
typeParameterMatcherFindCache
-
counterHashCode
Deprecated. -
setCounterHashCode
Deprecated. -
handlerSharableCache
-
localChannelReaderStackDepth
public int localChannelReaderStackDepth() -
setLocalChannelReaderStackDepth
public void setLocalChannelReaderStackDepth(int localChannelReaderStackDepth) -
indexedVariable
-
setIndexedVariable
- Returns:
trueif and only if a new thread-local variable has been created
-
getAndSetIndexedVariable
-
removeIndexedVariable
-
isIndexedVariableSet
public boolean isIndexedVariableSet(int index) -
isCleanerFlagSet
Deprecated. -
setCleanerFlag
Deprecated.
-