public interface CallableClient
Modifier and Type | Method and Description |
---|---|
void |
receiveCall(java.lang.String senderId,
java.lang.String msgId,
Message message)
Receives a message for which a response is required.
|
void |
receiveNotification(java.lang.String senderId,
Message message)
Receives a message for which no response is required.
|
void |
receiveResponse(java.lang.String responderId,
java.lang.String msgTag,
Response response)
Receives a response to a message previously sent by this client.
|
void receiveNotification(java.lang.String senderId, Message message) throws java.lang.Exception
senderId
- public ID of sending clientmessage
- messagejava.lang.Exception
void receiveCall(java.lang.String senderId, java.lang.String msgId, Message message) throws java.lang.Exception
reply
method at some future point.senderId
- public ID of sending clientmsgId
- message identifier for later use with replymessage
- messagejava.lang.Exception
void receiveResponse(java.lang.String responderId, java.lang.String msgTag, Response response) throws java.lang.Exception
responderId
- public ID of responding clientmsgTag
- client-defined tag labelling previously-sent messageresponse
- returned response objectjava.lang.Exception