public static interface AcknowledgedMessagesExtension.Listener
A listener for acknowledgement events.
Implementation will be notified of these events:
batchSend, when a batch of messages is sent to a client sessiononBatchReceive(ServerSession, long), when the client session confirms it has received a batch of messagesStateful implementations may use Session.setAttribute(String, Object)
to store per-session data, or a Map<ServerSession, ?>
| Modifier and Type | Method and Description |
|---|---|
default void |
onBatchReceive(ServerSession session,
long batch)
Callback method invoked when a client session confirms it has received the given batch of messages.
|
default void |
onBatchSend(ServerSession session,
List<ServerMessage> messages,
long batch)
Callback method invoked when a batch of message is about to be sent to a client session.
|
default void onBatchSend(ServerSession session, List<ServerMessage> messages, long batch)
Callback method invoked when a batch of message is about to be sent to a client session.
session - the sessionmessages - the messages to send, as an immutable listbatch - the batch numberdefault void onBatchReceive(ServerSession session, long batch)
Callback method invoked when a client session confirms it has received the given batch of messages.
session - the sessionbatch - the batch numberCopyright © 2008–2022 The CometD Project. All rights reserved.