| Modifier and Type | Field and Description |
|---|---|
| private CharSequence | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public char | charAt(final int
the index of the index)char value to be returnedImplements java. Returns the |
| public void | clear()
Implements org. Resets the object to a clean state. |
| public <S> void | forEachParameter(final ParameterConsumer<S>
The action to be performed for each key-value pair in this collection action, final S the object to be passed as the third parameter to each invocation on the
specified ParameterConsumer. state)Implements org. Performs the given action for each parameter until all values have been processed or the action throws an exception. |
| public void | formatTo(final StringBuilder
the StringBuilder to write into buffer)Implements org. Writes a text representation of this object into the specified |
| public String | getFormat()
Implements org. Gets the format portion of the Message. |
| public String | getFormattedMessage()
Implements org. Gets the Message formatted as a String. |
| public short | Returns: 0 (zero)Implements org. This message does not have any parameters so this method always returns zero. |
| public Object[] | getParameters()
Implements org. Gets parameter values, if any. |
| public Throwable | getThrowable()
Implements org. Gets the throwable, if any. |
| public int | |
| public Message | memento()
Implements org. Returns an immutable snapshot of the current internal state of this reusable message. |
| public void | |
| public void | |
| public CharSequence | subSequence(final int
the start index, inclusive start, final int the end index, exclusive end)Implements java. Returns a |
| public Object[] | Returns: the specified arraythe parameter array to return emptyReplacement)Implements org. This message does not have any parameters, so this method returns the specified array. |
| private Object |
| charSequence | back to summary |
|---|---|
| private CharSequence charSequence | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ReusableSimpleMessage | back to summary |
|---|---|
| public ReusableSimpleMessage() | |
| charAt | back to summary |
|---|---|
| public char charAt(final int index) Implements java. Doc from java. Returns the If the
| |
| clear | back to summary |
|---|---|
| public void clear() Implements org. Doc from org. Resets the object to a clean state.
| |
| forEachParameter | back to summary |
|---|---|
| public <S> void forEachParameter(final ParameterConsumer<S> action, final S state) Implements org. Doc from org. Performs the given action for each parameter until all values have been processed or the action throws an exception. The second parameter lets callers pass in a stateful object to be modified with the key-value pairs, so the TriConsumer implementation itself can be stateless and potentially reusable.
| |
| formatTo | back to summary |
|---|---|
| public void formatTo(final StringBuilder buffer) Implements org. Doc from org. Writes a text representation of this object into the specified
| |
| getFormat | back to summary |
|---|---|
| public String getFormat() Implements org. Doc from org. Gets the format portion of the Message.
| |
| getFormattedMessage | back to summary |
|---|---|
| public String getFormattedMessage() Implements org. Doc from org. Gets the Message formatted as a String. Each Message implementation determines the appropriate way to format the data encapsulated in the Message. Messages that provide more than one way of formatting the Message will implement MultiformatMessage.
When configured to log asynchronously, this method is called before the Message is queued, unless this
message implements
When logging synchronously, this method will not be called for Messages that implement the
| |
| getParameterCount | back to summary |
|---|---|
| public short getParameterCount() Implements org. This message does not have any parameters so this method always returns zero.
| |
| getParameters | back to summary |
|---|---|
| public Object[] getParameters() Implements org. Doc from org. Gets parameter values, if any. | |
| getThrowable | back to summary |
|---|---|
| public Throwable getThrowable() Implements org. Doc from org. Gets the throwable, if any. | |
| length | back to summary |
|---|---|
| public int length() Implements java. Doc from java. Returns the length of this character sequence. The length is the number
of 16-bit
| |
| memento | back to summary |
|---|---|
| public Message memento() Implements org. Doc from org. Returns an immutable snapshot of the current internal state of this reusable message. The returned snapshot will not be affected by subsequent modifications of this reusable message. | |
| set | back to summary |
|---|---|
| public void set(final String message) | |
| set | back to summary |
|---|---|
| public void set(final CharSequence charSequence) | |
| subSequence | back to summary |
|---|---|
| public CharSequence subSequence(final int start, final int end) Implements java. Doc from java. Returns a
| |
| swapParameters | back to summary |
|---|---|
| public Object[] swapParameters(final Object[] emptyReplacement) Implements org. This message does not have any parameters, so this method returns the specified array. | |
| writeReplace | back to summary |
|---|---|
| private Object writeReplace() | |