@AsynchronouslyFormattable public class ThreadDumpMessage extends Object implements Message, StringBuilderFormattable
Constructor and Description |
---|
ThreadDumpMessage(String title)
Generate a ThreadDumpMessage with a title.
|
Modifier and Type | Method and Description |
---|---|
void |
formatTo(StringBuilder sb)
Writes a text representation of this object into the specified
StringBuilder , ideally without allocating
temporary objects. |
String |
getFormat()
Returns the title.
|
String |
getFormattedMessage()
Returns the ThreadDump in printable format.
|
Object[] |
getParameters()
Returns an array with a single element, a Map containing the ThreadInformation as the key.
|
Throwable |
getThrowable()
Always returns null.
|
String |
toString() |
protected Object |
writeReplace()
Creates a ThreadDumpMessageProxy that can be serialized.
|
public ThreadDumpMessage(String title)
title
- The title.public String getFormattedMessage()
getFormattedMessage
in interface Message
public void formatTo(StringBuilder sb)
StringBuilderFormattable
StringBuilder
, ideally without allocating
temporary objects.formatTo
in interface StringBuilderFormattable
sb
- the StringBuilder to write intopublic String getFormat()
public Object[] getParameters()
getParameters
in interface Message
protected Object writeReplace()
public Throwable getThrowable()
getThrowable
in interface Message
Copyright © 1999-2017. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.