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