Interface RequestListenerV2


  • public interface RequestListenerV2

    Listener interface implemented by resource adaptors to receive request messages sent by other nodes. Requests differ from messages in that a response is expected.

    Implementations of this interface are registered with the Message Facility using MessageFacility.setRequestListener(RequestListenerV2).

    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

      • handleRequest

        Object handleRequest​(String sourceNode,
                             byte[] payload)
                      throws Exception

        Handle the given request message.

        Parameters:
        sourceNode - the node ID of the node which sent the message.
        payload - the payload of the message.
        Returns:
        the result of request processing. May be null.
        Throws:
        Exception - if an error occurs handling the request.
        Since:
        Rhino 3.2