Interface MessageMonitor.MonitorCallback

All Known Implementing Classes:
NoOpMessageMonitorCallback
Enclosing interface:
MessageMonitor<T extends Message>

public static interface MessageMonitor.MonitorCallback
An interface to let the message processor inform the message monitor of the result of processing the message
  • Method Details

    • reportSuccess

      void reportSuccess()
      Notify the monitor that the message was handled successfully
    • reportFailure

      void reportFailure(Throwable cause)
      Notify the monitor that a failure occurred during processing of the message
      Parameters:
      cause - or null if unknown
    • reportIgnored

      void reportIgnored()
      Notify the monitor that the message was ignored
    • complete

      default BiConsumer<? super CommandResultMessage,? super Throwable> complete()