Interface RequestListener
-
public interface RequestListener
Requests are delivered to a RequestListener.
RequestListener
s are implemented by the resource adaptor, and registered using theMessageFacility
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
handleRequest(int sourceNode, byte[] payload)
Handle the given message.
-
-
-
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.
-
-