Interface MessageHandler

  • All Known Implementing Classes:
    DestinationSession, IntermediateSession, MessageBus, SendProxy, Sequencer

    public interface MessageHandler
    All classes that wants to handle messages that move through the messagebus need to implement this interface. As opposed to the ReplyHandler which handles replies as they return from the receiver to the sender, this interface is intended for handling messages as they travel from the sender to the receiver.
    Author:
    Simon Thoresen Hult
    • Method Detail

      • handleMessage

        void handleMessage​(Message message)
        This function is called when a message arrives.
        Parameters:
        message - The message that arrived.