Package org.astrogrid.samp.client
Interface CallableClient
-
- All Known Implementing Classes:
Calculator
public interface CallableClientDefines callbacks which the hub can make on a callable client.- Since:
- 16 Jul 2008
- Author:
- Mark Taylor
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
receiveNotification
void receiveNotification(java.lang.String senderId, Message message) throws java.lang.ExceptionReceives a message for which no response is required.- Parameters:
senderId- public ID of sending clientmessage- message- Throws:
java.lang.Exception
-
receiveCall
void receiveCall(java.lang.String senderId, java.lang.String msgId, Message message) throws java.lang.ExceptionReceives a message for which a response is required. The implementation must take care to call the hub'sreplymethod at some future point.- Parameters:
senderId- public ID of sending clientmsgId- message identifier for later use with replymessage- message- Throws:
java.lang.Exception
-
receiveResponse
void receiveResponse(java.lang.String responderId, java.lang.String msgTag, Response response) throws java.lang.ExceptionReceives a response to a message previously sent by this client.- Parameters:
responderId- public ID of responding clientmsgTag- client-defined tag labelling previously-sent messageresponse- returned response object- Throws:
java.lang.Exception
-
-