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 Summary

    Modifier and Type
    Method
    Description
    void
    Notify the monitor that a failure occurred during processing of the message
    void
    Notify the monitor that the message was ignored
    void
    Notify the monitor that the message was handled successfully
  • 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