Enum Class NoOpMessageMonitor

java.lang.Object
java.lang.Enum<NoOpMessageMonitor>
org.axonframework.messaging.monitoring.NoOpMessageMonitor
All Implemented Interfaces:
Serializable, Comparable<NoOpMessageMonitor>, Constable, MessageMonitor<Message>

public enum NoOpMessageMonitor extends Enum<NoOpMessageMonitor> implements MessageMonitor<Message>
A message monitor that returns a NoOp message callback
Since:
3.0
Author:
Marijn van Zelst
  • Enum Constant Details

  • Method Details

    • values

      public static NoOpMessageMonitor[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NoOpMessageMonitor valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • instance

      public static NoOpMessageMonitor instance()
      Returns the instance of {@link NoOpMessageMonitor}. This method is a convenience method, which can be used as a lambda expression
      Returns:
      the instance of {@link NoOpMessageMonitor}
    • onMessageIngested

      public MessageMonitor.MonitorCallback onMessageIngested(@Nonnull Message message)
      Description copied from interface: MessageMonitor
      Takes a message and returns a callback that should be used to inform the message monitor about the result of processing the message
      Specified by:
      onMessageIngested in interface MessageMonitor<Message>
      Parameters:
      message - the message to monitor
      Returns:
      the callback