Package org.apache.logging.log4j.message
Class DefaultFlowMessageFactory.SimpleExitMessage
java.lang.Object
org.apache.logging.log4j.message.DefaultFlowMessageFactory.AbstractFlowMessage
org.apache.logging.log4j.message.DefaultFlowMessageFactory.SimpleExitMessage
- All Implemented Interfaces:
Serializable,ExitMessage,FlowMessage,Message
- Enclosing class:
DefaultFlowMessageFactory
private static final class DefaultFlowMessageFactory.SimpleExitMessage
extends DefaultFlowMessageFactory.AbstractFlowMessage
implements ExitMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final Objectprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionSimpleExitMessage(String exitText, Object result, EntryMessage message) SimpleExitMessage(String exitText, Object result, Message message) SimpleExitMessage(String exitText, EntryMessage message) -
Method Summary
Modifier and TypeMethodDescriptionGets the Message formatted as a String.Methods inherited from class org.apache.logging.log4j.message.DefaultFlowMessageFactory.AbstractFlowMessage
getFormat, getMessage, getParameters, getText, getThrowableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.logging.log4j.message.FlowMessage
getMessage, getTextMethods inherited from interface org.apache.logging.log4j.message.Message
getFormat, getParameters, getThrowable
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
result
-
isVoid
private final boolean isVoid
-
-
Constructor Details
-
SimpleExitMessage
SimpleExitMessage(String exitText, EntryMessage message) -
SimpleExitMessage
SimpleExitMessage(String exitText, Object result, EntryMessage message) -
SimpleExitMessage
-
-
Method Details
-
getFormattedMessage
Description copied from interface:MessageGets 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
ReusableMessageor is annotated withAsynchronouslyFormattable. 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
StringBuilderFormattableinterface: instead, theformatTo(StringBuilder)method will be called so the Message can format its contents without creating intermediate String objects.- Specified by:
getFormattedMessagein interfaceMessage- Overrides:
getFormattedMessagein classDefaultFlowMessageFactory.AbstractFlowMessage- Returns:
- The message String.
-