Package org.apache.logging.log4j.message
Class BasicThreadInformation
java.lang.Object
org.apache.logging.log4j.message.BasicThreadInformation
- All Implemented Interfaces:
ThreadInformation
Generates information about the current Thread. Used internally by ThreadDumpMessage.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final longprivate final booleanprivate final booleanprivate final Stringprivate final Stringprivate final intprivate final Thread.Stateprivate final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidprintStack(StringBuilder sb, StackTraceElement[] trace) Format the StackTraceElements.voidPrint the thread information.
-
Field Details
-
HASH_SHIFT
private static final int HASH_SHIFT- See Also:
-
HASH_MULTIPLIER
private static final int HASH_MULTIPLIER- See Also:
-
id
private final long id -
name
-
longName
-
state
-
priority
private final int priority -
isAlive
private final boolean isAlive -
isDaemon
private final boolean isDaemon -
threadGroupName
-
-
Constructor Details
-
BasicThreadInformation
BasicThreadInformation(Thread thread) The Constructor.- Parameters:
thread- The Thread to capture.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
printThreadInfo
Print the thread information.- Specified by:
printThreadInfoin interfaceThreadInformation- Parameters:
sb- The StringBuilder.
-
printStack
Format the StackTraceElements.- Specified by:
printStackin interfaceThreadInformation- Parameters:
sb- The StringBuilder.trace- The stack trace element array to format.
-