Interface MessageSender<T>

    • Method Detail

      • send

        void send​(T message)
        Send a message to corresponding MessageListener.onMessage(T). It does not guarantee whether the message is sent successfully or not.
        Parameters:
        message - a message
      • close

        void close()
            throws java.lang.Throwable
        Closes the connection.
        Throws:
        java.lang.Throwable - while closing.