Class DefaultFlowMessageFactory.SimpleExitMessage

    • Field Detail

      • result

        private final java.lang.Object result
      • isVoid

        private final boolean isVoid
    • Constructor Detail

      • SimpleExitMessage

        SimpleExitMessage​(java.lang.String exitText,
                          EntryMessage message)
      • SimpleExitMessage

        SimpleExitMessage​(java.lang.String exitText,
                          Message message)
      • SimpleExitMessage

        SimpleExitMessage​(java.lang.String exitText,
                          java.lang.Object result,
                          EntryMessage message)
      • SimpleExitMessage

        SimpleExitMessage​(java.lang.String exitText,
                          java.lang.Object result,
                          Message message)
    • Method Detail

      • getFormattedMessage

        public java.lang.String getFormattedMessage()
        Description copied from interface: Message
        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 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.

        Specified by:
        getFormattedMessage in interface Message
        Overrides:
        getFormattedMessage in class DefaultFlowMessageFactory.AbstractFlowMessage
        Returns:
        The message String.