Package org.astrogrid.samp.client
Interface CallableClient
- All Known Implementing Classes:
Calculator
public interface CallableClient
Defines callbacks which the hub can make on a callable client.
- Since:
- 16 Jul 2008
- Author:
- Mark Taylor
-
Method Summary
Modifier and TypeMethodDescriptionvoidreceiveCall(String senderId, String msgId, Message message) Receives a message for which a response is required.voidreceiveNotification(String senderId, Message message) Receives a message for which no response is required.voidreceiveResponse(String responderId, String msgTag, Response response) Receives a response to a message previously sent by this client.
-
Method Details
-
receiveNotification
Receives a message for which no response is required.- Parameters:
senderId- public ID of sending clientmessage- message- Throws:
Exception
-
receiveCall
Receives 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:
Exception
-
receiveResponse
Receives 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:
Exception
-