Interface MessageHandler

  • All Known Implementing Classes:
    DestinationSession, IntermediateSession, MessageBus, QueueAdapter, Receptor, 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.
    Simon Thoresen Hult
    • Method Detail

      • handleMessage

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