org.apache.logging.log4j.message

Interface FlowMessageFactory

  • All Known Implementing Classes:
    DefaultFlowMessageFactory


    public interface FlowMessageFactory
    Creates flow messages. Implementations can provide different message format syntaxes.
    Since:
    2.6
    • Method Detail

      • newEntryMessage

        EntryMessage newEntryMessage(Message message)
        Creates a new entry message based on an existing message.
        Parameters:
        message - the original message
        Returns:
        the new entry message
      • newExitMessage

        ExitMessage newExitMessage(Object result,
                                   Message message)
        Creates a new exit message based on a return value and an existing message.
        Parameters:
        result - the return value.
        message - the original message
        Returns:
        the new exit message
      • newExitMessage

        ExitMessage newExitMessage(EntryMessage message)
        Creates a new exit message based on no return value and an existing entry message.
        Parameters:
        message - the original entry message
        Returns:
        the new exit message
      • newExitMessage

        ExitMessage newExitMessage(Object result,
                                   EntryMessage message)
        Creates a new exit message based on a return value and an existing entry message.
        Parameters:
        result - the return value.
        message - the original entry message
        Returns:
        the new exit message

Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.