Class MementoMessage
- java.lang.Object
-
- org.apache.logging.log4j.core.impl.MementoMessage
-
- All Implemented Interfaces:
Serializable
,Message
,StringBuilderFormattable
public final class MementoMessage extends Object implements Message, StringBuilderFormattable
Consider this class private.MementoMessage
is intended to be used when we need to make an immutable copy of aMessage
without forgetting the originalMessage.getFormat()
andMessage.getParameters()
values.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MementoMessage(String formattedMessage, String format, Object[] parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
formatTo(StringBuilder buffer)
String
getFormat()
String
getFormattedMessage()
Object[]
getParameters()
Throwable
getThrowable()
Always returns null.String
toString()
-
-
-
Method Detail
-
getFormattedMessage
public String getFormattedMessage()
- Specified by:
getFormattedMessage
in interfaceMessage
-
getParameters
public Object[] getParameters()
- Specified by:
getParameters
in interfaceMessage
-
getThrowable
public Throwable getThrowable()
Always returns null.- Specified by:
getThrowable
in interfaceMessage
- Returns:
- null
-
formatTo
public void formatTo(StringBuilder buffer)
- Specified by:
formatTo
in interfaceStringBuilderFormattable
-
-