Package de.christofreichardt.diagnosis
Class ThreadMap
java.lang.Object
de.christofreichardt.diagnosis.AbstractThreadMap
de.christofreichardt.diagnosis.ThreadMap
This class maps threads on
TracingContexts. It provides methods to set, access and remove the TracingContext
of the current thread. Furthermore to be monitored methods can be pushed on or popped from the method stack of the current
TracingContext. For internal use primarily.- Author:
- Christof Reichardt
-
Nested Class Summary
Nested classes/interfaces inherited from class de.christofreichardt.diagnosis.AbstractThreadMap
AbstractThreadMap.RuntimeException -
Field Summary
Fields inherited from class de.christofreichardt.diagnosis.AbstractThreadMap
STACK_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the stack size of the current thread.
-
Constructor Details
-
ThreadMap
public ThreadMap()
-
-
Method Details
-
getCurrentStackSize
public int getCurrentStackSize()Returns the stack size of the current thread. The value -1 indicates that the current thread isn't registered.- Specified by:
getCurrentStackSizein classAbstractThreadMap- Returns:
- the current stack size
-