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 Type
    Method
    Description
    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".
    default boolean
    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 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, 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