public static interface ServerSession.QueueMaxedListener extends ServerSession.ServerSessionListener
Listeners objects that implement this interface will be notified when the session queue is full.
This is a restricted listener interface because implementers are invoked while holding the session lock and therefore are restricted in the type of operations they may perform; in particular, publishing a message to another session may end up in a deadlock.
Modifier and Type | Method and Description |
---|---|
boolean |
queueMaxed(ServerSession session,
Queue<ServerMessage> queue,
ServerSession sender,
ServerMessage message)
Callback invoked to notify when the message queue is exceeding the value
configured for the transport with the option "maxQueue".
|
boolean queueMaxed(ServerSession session, Queue<ServerMessage> queue, ServerSession sender, ServerMessage 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.