Package org.astrogrid.samp.client
Class HubConnector.ConnectorCallableClient
- java.lang.Object
-
- org.astrogrid.samp.client.HubConnector.ConnectorCallableClient
-
- All Implemented Interfaces:
CallableClient
- Enclosing class:
- HubConnector
private class HubConnector.ConnectorCallableClient extends java.lang.Object implements CallableClient
CallableClient implementation used by this class.
-
-
Field Summary
Fields Modifier and Type Field Description private HubConnectionconn_
-
Constructor Summary
Constructors Modifier Constructor Description privateConnectorCallableClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreceiveCall(java.lang.String senderId, java.lang.String msgId, Message message)Receives a message for which a response is required.voidreceiveNotification(java.lang.String senderId, Message message)Receives a message for which no response is required.voidreceiveResponse(java.lang.String responderId, java.lang.String msgTag, Response response)Receives a response to a message previously sent by this client.private voidsetConnection(HubConnection connection)Sets the currently active hub connection.
-
-
-
Field Detail
-
conn_
private HubConnection conn_
-
-
Method Detail
-
setConnection
private void setConnection(HubConnection connection)
Sets the currently active hub connection.- Parameters:
connection- connection
-
receiveNotification
public void receiveNotification(java.lang.String senderId, Message message)Description copied from interface:CallableClientReceives a message for which no response is required.- Specified by:
receiveNotificationin interfaceCallableClient- Parameters:
senderId- public ID of sending clientmessage- message
-
receiveCall
public void receiveCall(java.lang.String senderId, java.lang.String msgId, Message message)Description copied from interface:CallableClientReceives a message for which a response is required. The implementation must take care to call the hub'sreplymethod at some future point.- Specified by:
receiveCallin interfaceCallableClient- Parameters:
senderId- public ID of sending clientmsgId- message identifier for later use with replymessage- message
-
receiveResponse
public void receiveResponse(java.lang.String responderId, java.lang.String msgTag, Response response)Description copied from interface:CallableClientReceives a response to a message previously sent by this client.- Specified by:
receiveResponsein interfaceCallableClient- Parameters:
responderId- public ID of responding clientmsgTag- client-defined tag labelling previously-sent messageresponse- returned response object
-
-