Class AbstractThreadMap

java.lang.Object
de.christofreichardt.diagnosis.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 Details

    • STACK_SIZE

      public static final int STACK_SIZE
      denotes the maximal number of traced methods on the stack
      See Also:
  • Constructor Details

    • AbstractThreadMap

      public AbstractThreadMap()
  • Method Details

    • 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