org.cometd
Interface QueueListener

All Superinterfaces:
ClientListener, java.util.EventListener

public interface QueueListener
extends ClientListener

Author:
athena

Method Summary
 boolean queueMaxed(Client from, Client to, Message message)
          Call back to notify if a message for a client will result in the message queue exceeding Client.getMaxQueue().
 

Method Detail

queueMaxed

boolean queueMaxed(Client from,
                   Client to,
                   Message message)
Call back to notify if a message for a client will result in the message queue exceeding Client.getMaxQueue(). This is called with the client instance locked, so it is safe for the handler to manipulate the queue returned by Client.getQueue(), but action in the callback that may result in another Client instance should be avoided as that would risk deadlock.

Parameters:
from - Client message is published from
to - Client message is being delivered to
message -
Returns:
true if the message should be added to the client queue


Copyright © 2010 Dojo Foundation. All Rights Reserved.