Class MessageSender.AsynchSender

  • Enclosing class:
    MessageSender

    private static class MessageSender.AsynchSender
    extends MessageSender
    MessageSender implementation which uses the Asynchronous Call/Response pattern.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  MessageSender.AsynchSender.Collector
      CallableClient implementation which collects asynchronous message responses.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int iseq_  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private AsynchSender()  
    • Field Detail

      • iseq_

        private int iseq_
    • Constructor Detail

      • AsynchSender

        private AsynchSender()
    • 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. If recipientIds is null, then will be sent to all subscribed clients.
        Specified by:
        getResponses in class MessageSender
        Parameters:
        connection - hub connection
        msg - message to send
        recipientIds - array of recipients to target, or null
        Returns:
        responder Client -> Response map
        Throws:
        java.io.IOException