Class AsyncDispatcherImpl<W,​S extends Message,​T extends Message>

    • Method Detail

      • send

        public java.util.concurrent.CompletableFuture<AsyncDispatcher.DispatchStatus> send​(S message)
        Description copied from interface: AsyncDispatcher
        Asynchronously send the given message.
        Specified by:
        send in interface AsyncDispatcher<W>
        Parameters:
        message - the message to send
        Returns:
        a future that is resolved once the message was dispatched or queued
      • getMissedFutures

        public long getMissedFutures()
      • getQueueSize

        public int getQueueSize()
        Description copied from interface: AsyncDispatcher
        Returns the number of messages that are currently queued awaiting for dispatch.
        Specified by:
        getQueueSize in interface AsyncDispatcher<W>
        Returns:
        current queue size
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception