Package org.astrogrid.samp.test
Class MessageSender.NotifySender
- java.lang.Object
-
- org.astrogrid.samp.test.MessageSender
-
- org.astrogrid.samp.test.MessageSender.NotifySender
-
- Enclosing class:
- MessageSender
private static class MessageSender.NotifySender extends MessageSender
MessageSender implementation which uses the Notify pattern.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
NotifySender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map
getResponses(HubConnection connection, Message msg, java.lang.String[] recipientIds)
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[] recipientIds) throws java.io.IOException
Description copied from class:MessageSender
Sends a message to a given list of recipients. IfrecipientIds
is null, then will be sent to all subscribed clients.- Specified by:
getResponses
in classMessageSender
- Parameters:
connection
- hub connectionmsg
- message to sendrecipientIds
- array of recipients to target, or null- Returns:
- responder Client -> Response map
- Throws:
java.io.IOException
-
-