Class InternalThreadLocalMap


  • public final class InternalThreadLocalMap
    extends Object
    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 Detail

      • UNSET

        public static final Object UNSET
      • 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.
      • rp9

        public long rp9
        Deprecated.
        These padding fields will be removed in the future.
    • Method Detail

      • remove

        public static void remove()
      • destroy

        public static void destroy()
      • nextVariableIndex

        public static int nextVariableIndex()
      • lastVariableIndex

        public static int lastVariableIndex()
      • size

        public int size()
      • arrayList

        public <E> ArrayList<E> arrayList()
      • arrayList

        public <E> ArrayList<E> arrayList​(int minCapacity)
      • futureListenerStackDepth

        public int futureListenerStackDepth()
      • setFutureListenerStackDepth

        public void setFutureListenerStackDepth​(int futureListenerStackDepth)
      • handlerSharableCache

        public Map<Class<?>,​Boolean> handlerSharableCache()
      • localChannelReaderStackDepth

        public int localChannelReaderStackDepth()
      • setLocalChannelReaderStackDepth

        public void setLocalChannelReaderStackDepth​(int localChannelReaderStackDepth)
      • indexedVariable

        public Object indexedVariable​(int index)
      • setIndexedVariable

        public boolean setIndexedVariable​(int index,
                                          Object value)
        Returns:
        true if and only if a new thread-local variable has been created
      • removeIndexedVariable

        public Object removeIndexedVariable​(int index)
      • isIndexedVariableSet

        public boolean isIndexedVariableSet​(int index)
      • isCleanerFlagSet

        public boolean isCleanerFlagSet​(int index)
      • setCleanerFlag

        public void setCleanerFlag​(int index)