public class EventBusErrorMessage
extends java.lang.Object
implements org.apache.logging.log4j.message.Message, org.apache.logging.log4j.util.StringBuilderFormattable
コンストラクタと説明 |
---|
EventBusErrorMessage(Event event,
int index,
IEventListener[] listeners,
java.lang.Throwable throwable) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
formatTo(java.lang.StringBuilder buffer)
Writes a text representation of this object into the specified
StringBuilder , ideally without allocating
temporary objects. |
java.lang.String |
getFormat()
Gets the format portion of the Message.
|
java.lang.String |
getFormattedMessage()
Gets the Message formatted as a String.
|
java.lang.Object[] |
getParameters()
Gets parameter values, if any.
|
java.lang.Throwable |
getThrowable()
Gets the throwable, if any.
|
public EventBusErrorMessage(Event event, int index, IEventListener[] listeners, java.lang.Throwable throwable)
public java.lang.String getFormattedMessage()
org.apache.logging.log4j.message.Message
When configured to log asynchronously, this method is called before the Message is queued, unless this
message implements ReusableMessage
or is annotated with AsynchronouslyFormattable
.
This gives the Message implementation class a chance to create a formatted message String with the current value
of any mutable objects.
The intention is that the Message implementation caches this formatted message and returns it on subsequent
calls. (See LOG4J2-763.)
When logging synchronously, this method will not be called for Messages that implement the
StringBuilderFormattable
interface: instead, the
formatTo(StringBuilder)
method will be called so the
Message can format its contents without creating intermediate String objects.
getFormattedMessage
インタフェース内 org.apache.logging.log4j.message.Message
public java.lang.String getFormat()
org.apache.logging.log4j.message.Message
getFormat
インタフェース内 org.apache.logging.log4j.message.Message
public java.lang.Object[] getParameters()
org.apache.logging.log4j.message.Message
getParameters
インタフェース内 org.apache.logging.log4j.message.Message
public java.lang.Throwable getThrowable()
org.apache.logging.log4j.message.Message
getThrowable
インタフェース内 org.apache.logging.log4j.message.Message
public void formatTo(java.lang.StringBuilder buffer)
org.apache.logging.log4j.util.StringBuilderFormattable
StringBuilder
, ideally without allocating
temporary objects.formatTo
インタフェース内 org.apache.logging.log4j.util.StringBuilderFormattable
buffer
- the StringBuilder to write into