Interface ServerSession.DeQueueListener

All Superinterfaces:
Bayeux.BayeuxListener, EventListener, ServerSession.ServerSessionListener
All Known Implementing Classes:
AcknowledgedMessagesSessionExtension
Enclosing interface:
ServerSession

public static interface ServerSession.DeQueueListener
extends ServerSession.ServerSessionListener

Listeners objects that implement this interface will be notified when the session queue is being drained to actually deliver the messages.

This is a restricted listener interface, see ServerSession.MaxQueueListener.

  • Method Summary

    Modifier and Type Method Description
    void deQueue​(ServerSession session, Queue<ServerMessage> queue)
    Callback invoked to notify that the queue of messages is about to be sent to the remote client.
  • Method Details

    • deQueue

      void deQueue​(ServerSession session, 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