类 InternalThreadLocalMap


  • public final class InternalThreadLocalMap
    extends Object
    The internal data structure that stores the threadLocal variables for Netty and all InternalThreads. Note that this class is for internal use only. Use InternalThread unless you know what you are doing.
    • 字段详细资料

      • UNSET

        public static final Object UNSET
    • 方法详细资料

      • remove

        public static void remove()
      • destroy

        public static void destroy()
      • nextVariableIndex

        public static int nextVariableIndex()
      • lastVariableIndex

        public static int lastVariableIndex()
      • indexedVariable

        public Object indexedVariable(int index)
      • setIndexedVariable

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

        public Object removeIndexedVariable(int index)
      • size

        public int size()