ServerSession.QueueMaxedListener
instead@Deprecated public static interface ServerSession.MaxQueueListener extends ServerSession.QueueMaxedListener
Modifier and Type | Method and Description |
---|---|
boolean |
queueMaxed(ServerSession session,
Queue<ServerMessage> queue,
ServerSession sender,
Message message)
Deprecated.
Callback invoked to notify when the message queue is exceeding the value
configured for the transport with the option "maxQueue".
|
default boolean |
queueMaxed(ServerSession session,
Queue<ServerMessage> queue,
ServerSession sender,
ServerMessage message)
Deprecated.
Callback invoked to notify when the message queue is exceeding the value
configured for the transport with the option "maxQueue".
|
default boolean queueMaxed(ServerSession session, Queue<ServerMessage> queue, ServerSession sender, ServerMessage message)
ServerSession.QueueMaxedListener
Callback invoked to notify when the message queue is exceeding the value configured for the transport with the option "maxQueue".
Implementers may modify the queue, for example by removing or merging messages.
queueMaxed
in interface ServerSession.QueueMaxedListener
session
- the session that will receive the messagequeue
- the session's message queuesender
- the session that is sending the messagesmessage
- the message that exceeded the max queue capacityboolean queueMaxed(ServerSession session, Queue<ServerMessage> queue, ServerSession sender, Message message)
Callback invoked to notify when the message queue is exceeding the value configured for the transport with the option "maxQueue".
Implementers may modify the queue, for example by removing or merging messages.
session
- the session that will receive the messagequeue
- the session's message queuesender
- the session that is sending the messagesmessage
- the message that exceeded the max queue capacityCopyright © 2008–2024 The CometD Project. All rights reserved.