Interface ServerSession.QueueListener

All Superinterfaces:
Bayeux.BayeuxListener, EventListener, ServerSession.ServerSessionListener
All Known Implementing Classes:
AcknowledgedMessagesSessionExtension
Enclosing interface:
ServerSession

public static interface ServerSession.QueueListener extends ServerSession.ServerSessionListener

Listener objects that implement this interface will be notified when a message is queued in the session queue.

This is a restricted listener interface, see ServerSession.QueueMaxedListener.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    queued​(ServerSession sender, ServerMessage message)
    Callback invoked when a message is queued in the session queue.
  • Method Details

    • queued

      void queued(ServerSession sender, ServerMessage message)

      Callback invoked when a message is queued in the session queue.

      Parameters:
      sender - the ServerSession that sends the message, may be null.
      message - the message being queued