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
.
Modifier and Type | Method and 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.
|
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.
session
- the session whose messages are being sentqueue
- the queue of messages to sendCopyright © 2008–2016 The CometD Project. All rights reserved.