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, showResultsSynchSender(int timeout)
timeout - in secondspublic java.util.Map getResponses(HubConnection connection, Message msg, java.lang.String[] recIds) throws java.io.IOException
MessageSenderrecipientIds is null, then will be sent to all
subscribed clients.getResponses in class MessageSenderconnection - hub connectionmsg - message to sendrecIds - array of recipients to target, or nulljava.io.IOException