Interface RequestListener


  • public interface RequestListener

    Requests are delivered to a RequestListener. RequestListeners are implemented by the resource adaptor, and registered using the MessageFacility.

    • Method Detail

      • handleRequest

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

        Handle the given message.

        Parameters:
        sourceNode - The node ID of the node which sent the message.
        payload - The payload of the message.
        Returns:
        the result, if any.
        Throws:
        Exception - if an error occurs handling the request.