Interface IClusterMessageObserver

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    ClusterMessageObserver

    public interface IClusterMessageObserver
    extends Serializable
    An observer that can be used to listen for messages exchanged by nodes in the cluster.
    Since:
    3.1.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • receiveMessage

        void receiveMessage​(NodeMessageEvent event)
        Method that should be called when a message sent by a node was received. This method should invoke the appropriate listeners added via addListener(IClusterMessageListener).
        Parameters:
        event - Event with details about the received message.
      • addListener

        void addListener​(IClusterMessageListener listener)
        Adds a listener that will be invoked when an event related to messages between nodes occurs.
        Parameters:
        listener - Listener to add that will be invoked when an event occurs.