org.cometd.bayeux.server
Interface ServerSession.MaxQueueListener

All Superinterfaces:
Bayeux.BayeuxListener, EventListener, ServerSession.ServerSessionListener
Enclosing interface:
ServerSession

public static interface ServerSession.MaxQueueListener
extends ServerSession.ServerSessionListener

Listeners objects that implement this interface will be notified when the session queue is full.


Method Summary
 boolean queueMaxed(ServerSession session, Session from, Message message)
          Callback invoked to notify when the message queue is exceeding the value configured for the transport with the option "maxQueue".
 

Method Detail

queueMaxed

boolean queueMaxed(ServerSession session,
                   Session from,
                   Message message)

Callback invoked to notify when the message queue is exceeding the value configured for the transport with the option "maxQueue".

Parameters:
session - the session that will receive the message
from - the session that is sending the messages
message - the message that exceeded the max queue capacity
Returns:
true if the message should be added to the session queue


Copyright © 2008-2010 Dojo Foundation. All Rights Reserved.