private class HubClient.NoCallableClient extends java.lang.Object implements CallableClient
Modifier | Constructor and Description |
---|---|
private |
NoCallableClient() |
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 msgId,
Response response)
Receives a response to a message previously sent by this client.
|
private void |
refuse() |
public void receiveNotification(java.lang.String senderId, Message message) throws SampException
CallableClient
receiveNotification
in interface CallableClient
senderId
- public ID of sending clientmessage
- messageSampException
public void receiveCall(java.lang.String senderId, java.lang.String msgId, Message message) throws SampException
CallableClient
reply
method at some future point.receiveCall
in interface CallableClient
senderId
- public ID of sending clientmsgId
- message identifier for later use with replymessage
- messageSampException
public void receiveResponse(java.lang.String responderId, java.lang.String msgId, Response response) throws SampException
CallableClient
receiveResponse
in interface CallableClient
responderId
- public ID of responding clientmsgId
- client-defined tag labelling previously-sent messageresponse
- returned response objectSampException
private void refuse() throws SampException
SampException