Package org.apache.logging.log4j.message
Class ThreadDumpMessage
java.lang.Object
org.apache.logging.log4j.message.ThreadDumpMessage
- All Implemented Interfaces:
Serializable
,Message
,org.apache.logging.log4j.util.StringBuilderFormattable
@AsynchronouslyFormattable
public class ThreadDumpMessage
extends Object
implements Message, org.apache.logging.log4j.util.StringBuilderFormattable
Captures information about all running Threads.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Factory to create Thread information. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ThreadDumpMessage
Generate a ThreadDumpMessage with a title.- Parameters:
title
- The title.
-
-
Method Details
-
toString
-
getFormattedMessage
Returns the ThreadDump in printable format.- Specified by:
getFormattedMessage
in interfaceMessage
- Returns:
- the ThreadDump suitable for logging.
-
formatTo
- Specified by:
formatTo
in interfaceorg.apache.logging.log4j.util.StringBuilderFormattable
-
getFormat
Returns the title. -
getParameters
Returns an array with a single element, a Map containing the ThreadInformation as the key. and the StackTraceElement array as the value;- Specified by:
getParameters
in interfaceMessage
- Returns:
- the "parameters" to this Message.
-
getThrowable
Always returns null.- Specified by:
getThrowable
in interfaceMessage
- Returns:
- null
-