Interface MessageListener


  • public interface MessageListener

    Listener interface implemented by resource adaptors to receive asynchronous unidirectional messages from other nodes.

    Implementations of this interface are registered with the Message Facility using MessageFacility.addMessageListener(MessageListener).

    For new work, it is recommended to use MessageListenerV2 instead of this interface.

    • Method Detail

      • handleMessage

        void handleMessage​(int sourceNode,
                           byte[] payload)

        Handles the given asynchronous message.

        Parameters:
        sourceNode - the node ID of the node which sent the message.
        payload - the payload of the message.