private static class MessageSender.SynchSender extends MessageSender
Modifier and Type | Field and Description |
---|---|
private int |
timeout_ |
Constructor and Description |
---|
SynchSender(int timeout)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map |
getResponses(HubConnection connection,
Message msg,
java.lang.String[] recIds)
Sends a message to a given list of recipients.
|
main, runMain, showResults
SynchSender(int timeout)
timeout
- in secondspublic java.util.Map getResponses(HubConnection connection, Message msg, java.lang.String[] recIds) throws java.io.IOException
MessageSender
recipientIds
is null, then will be sent to all
subscribed clients.getResponses
in class MessageSender
connection
- hub connectionmsg
- message to sendrecIds
- array of recipients to target, or nulljava.io.IOException