Interface ServerSession.MaxQueueListener

    • Method Detail

      • 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 interface ServerSession.QueueMaxedListener
        Parameters:
        session - the session that will receive the message
        queue - the session's message queue
        sender - 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
      • 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 message
        queue - the session's message queue
        sender - 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