Package 

Interface MessageMonitor

  • All Implemented Interfaces:

    
    public interface MessageMonitor<T extends Message>
    
                        

    Specifies a mechanism to monitor message processing. When a message is supplied to a message monitor it returns a callback which should be used to notify the message monitor of the result of the processing of the event.

    For example, a message monitor can track various things like message processing times, failure and success rates and occurred exceptions. It also can gather information contained in messages headers like timestamps and tracers

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public interface MessageMonitor.MonitorCallback

      An interface to let the message processor inform the message monitor of the result of processing the message

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract MessageMonitor.MonitorCallback onMessageIngested(T message) Takes a message and returns a callback that should be used to inform the message monitor about the result of processing the message
      Map<out Object, MessageMonitor.MonitorCallback> onMessagesIngested(Collection<out T> messages) Takes a collection of messages and returns a map containing events along with their callbacks
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait