Package org.astrogrid.samp.test
Class MessageSender.SynchSender
- java.lang.Object
-
- org.astrogrid.samp.test.MessageSender
-
- org.astrogrid.samp.test.MessageSender.SynchSender
-
- Enclosing class:
- MessageSender
private static class MessageSender.SynchSender extends MessageSender
MessageSender implementation which uses the Synchronous Call/Response pattern.
-
-
Field Summary
Fields Modifier and Type Field Description private inttimeout_
-
Constructor Summary
Constructors Constructor Description SynchSender(int timeout)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.MapgetResponses(HubConnection connection, Message msg, java.lang.String[] recIds)Sends a message to a given list of recipients.-
Methods inherited from class org.astrogrid.samp.test.MessageSender
main, runMain, showResults
-
-
-
-
Method Detail
-
getResponses
public java.util.Map getResponses(HubConnection connection, Message msg, java.lang.String[] recIds) throws java.io.IOException
Description copied from class:MessageSenderSends a message to a given list of recipients. IfrecipientIdsis null, then will be sent to all subscribed clients.- Specified by:
getResponsesin classMessageSender- Parameters:
connection- hub connectionmsg- message to sendrecIds- array of recipients to target, or null- Returns:
- responder Client -> Response map
- Throws:
java.io.IOException
-
-