Package org.cometd.bayeux.server
Interface ServerSession.MaxQueueListener
-
- All Superinterfaces:
org.cometd.bayeux.Bayeux.BayeuxListener,EventListener,ServerSession.QueueMaxedListener,ServerSession.ServerSessionListener
- Enclosing interface:
- ServerSession
@Deprecated public static interface ServerSession.MaxQueueListener extends ServerSession.QueueMaxedListener
Deprecated.useServerSession.QueueMaxedListenerinstead
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description booleanqueueMaxed(ServerSession session, Queue<ServerMessage> queue, ServerSession sender, org.cometd.bayeux.Message message)Deprecated.Callback invoked to notify when the message queue is exceeding the value configured for the transport with the option "maxQueue".default booleanqueueMaxed(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 Detail
-
queueMaxed
default boolean queueMaxed(ServerSession session, Queue<ServerMessage> queue, ServerSession sender, ServerMessage message)
Deprecated.Description copied from interface:ServerSession.QueueMaxedListenerCallback 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:
queueMaxedin 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, org.cometd.bayeux.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
-
-