Package de.christofreichardt.diagnosis
Class AbstractThreadMap
java.lang.Object
de.christofreichardt.diagnosis.AbstractThreadMap
- Direct Known Subclasses:
ThreadLocalMap,ThreadMap
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIndicates a corruption of the method stack. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intdenotes the maximal number of traced methods on the stack -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intReturns the stack size of the current thread.
-
Field Details
-
STACK_SIZE
public static final int STACK_SIZEdenotes 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
-