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.QueueMaxedListener
.
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.
|
default void |
deQueue(ServerSession session,
Queue<ServerMessage> queue,
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.
|
default void deQueue(ServerSession session, Queue<ServerMessage> queue, 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.
session
- the session whose messages are being sentqueue
- the queue of messages to sendreplies
- the message replies to sendvoid 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–2024 The CometD Project. All rights reserved.