Package org.cometd.bayeux.server
Interface ServerSession.MaxQueueListener
- All Superinterfaces:
Bayeux.BayeuxListener
,EventListener
,ServerSession.QueueMaxedListener
,ServerSession.ServerSessionListener
- Enclosing interface:
ServerSession
@Deprecated
public static interface ServerSession.MaxQueueListener
extends ServerSession.QueueMaxedListener
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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".
-
Method Details
-
queueMaxed
default boolean queueMaxed(ServerSession session, Queue<ServerMessage> queue, ServerSession sender, ServerMessage message) Deprecated.Description copied from interface: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.
- Specified by:
queueMaxed
in interfaceServerSession.QueueMaxedListener
- Parameters:
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 capacity- Returns:
- true if the message should be added to the session queue
-
queueMaxed
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".
Implementers may modify the queue, for example by removing or merging messages.
- Parameters:
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 capacity- Returns:
- true if the message should be added to the session queue
-
ServerSession.QueueMaxedListener
instead