Interface PushSendListener

All Known Implementing Classes:
PushSessionTracker

public interface PushSendListener
Component notified when a UIDL message is sent to the client via PUSH mechanism.

The component is also notified when the PUSH connection is established in order to perform initialization tasks for the connected resource.

Implementation must be thread safe, since method invocation may originate in different threads.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onConnect(org.atmosphere.cpr.AtmosphereResource resource)
    Invoked when a new PUSH connection is established.
    void
    onMessageSent(org.atmosphere.cpr.AtmosphereResource resource)
    Invoked whenever a UIDL message has been sent to the client.
  • Method Details

    • onConnect

      default void onConnect(org.atmosphere.cpr.AtmosphereResource resource)
      Invoked when a new PUSH connection is established.
      Parameters:
      resource - the AtmosphereResource behind the PUSH connection.
    • onMessageSent

      void onMessageSent(org.atmosphere.cpr.AtmosphereResource resource)
      Invoked whenever a UIDL message has been sent to the client.
      Parameters:
      resource - the AtmosphereResource used to process the message