Package de.christofreichardt.diagnosis
Class ThreadMap
- java.lang.Object
-
- de.christofreichardt.diagnosis.AbstractThreadMap
-
- de.christofreichardt.diagnosis.ThreadMap
-
public class ThreadMap extends AbstractThreadMap
This class maps threads onTracingContexts. It provides methods to set, access and remove theTracingContextof the current thread. Furthermore to be monitored methods can be pushed on or popped from the method stack of the currentTracingContext. 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 Constructor Description ThreadMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrentStackSize()Returns the stack size of the current thread.
-
-
-
Method Detail
-
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
-
-