public interface RequestListener
Requests are delivered to a RequestListener. RequestListener
s are implemented by the resource adaptor, and registered using the MessageFacility
.
Modifier and Type | Method and Description |
---|---|
Object |
handleRequest(int sourceNode,
byte[] payload)
Handle the given message.
|
Object handleRequest(int sourceNode, byte[] payload) throws Exception
Handle the given message.
sourceNode
- The node ID of the node which sent the message.payload
- The payload of the message.Exception
- if an error occurs handling the request.