Interface MessageListenerV2


  • public interface MessageListenerV2

    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(MessageListenerV2).

    This is a newer version of the listener interface that uses a java.lang.String representation for node IDs instead of int.

    Since:
    Rhino 3.2
    • Method Detail

      • handleMessage

        void handleMessage​(String 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.
        Since:
        Rhino 3.2