Class AbstractThreadMap

  • Direct Known Subclasses:
    ThreadLocalMap, ThreadMap

    public abstract class AbstractThreadMap
    extends Object
    Has been introduced to exchange thread maps which are based on Map<Thread,TracingContext> with thread maps which are based on ThreadLocals and vice versa.
    Author:
    Christof Reichardt
    • Field Detail

      • STACK_SIZE

        public static final int STACK_SIZE
        denotes the maximal number of traced methods on the stack
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractThreadMap

        public AbstractThreadMap()
    • Method Detail

      • getCurrentStackSize

        public abstract int getCurrentStackSize()
        Returns the stack size of the current thread. The value -1 indicates that the current thread isn't registered.
        Returns:
        the current stack size or -1 if there is no stack for the current thread