Interface ServerSession.DeQueueListener

    • Method Summary

      Modifier and Type Method Description
      void deQueue​(ServerSession session, java.util.Queue<ServerMessage> queue)
      Callback invoked to notify that the queue of messages is about to be sent to the remote client.
      default void deQueue​(ServerSession session, java.util.Queue<ServerMessage> queue, java.util.List<ServerMessage.Mutable> replies)
      Callback invoked to notify that the queue of messages and the message replies are about to be sent to the remote client.
    • Method Detail

      • deQueue

        default void deQueue​(ServerSession session,
                             java.util.Queue<ServerMessage> queue,
                             java.util.List<ServerMessage.Mutable> replies)

        Callback invoked to notify that the queue of messages and the message replies are about to be sent to the remote client.

        This is the last chance to process the queue, to remove duplicates or merge messages, and to process the replies.

        Parameters:
        session - the session whose messages are being sent
        queue - the queue of messages to send
        replies - the message replies to send
      • deQueue

        void deQueue​(ServerSession session,
                     java.util.Queue<ServerMessage> queue)

        Callback invoked to notify that the queue of messages is about to be sent to the remote client.

        This is the last chance to process the queue and remove duplicates or merge messages.

        Parameters:
        session - the session whose messages are being sent
        queue - the queue of messages to send