Class PushSessionTracker

java.lang.Object
com.vaadin.kubernetes.starter.sessiontracker.push.PushSessionTracker
All Implemented Interfaces:
PushSendListener

public class PushSessionTracker extends Object implements PushSendListener
A PushSendListener that serialize HTTP session when messages are pushed to the client. It has the same scope of SessionTrackerFilter but for PUSH communication.
  • Constructor Details

  • Method Details

    • setActiveSessionChecker

      public void setActiveSessionChecker(Predicate<String> activeSessionChecker)
      Sets the active HTTP session checker.
      Parameters:
      activeSessionChecker - active HTTP session checker.
    • onConnect

      public void onConnect(org.atmosphere.cpr.AtmosphereResource resource)
      Description copied from interface: PushSendListener
      Invoked when a new PUSH connection is established.
      Specified by:
      onConnect in interface PushSendListener
      Parameters:
      resource - the AtmosphereResource behind the PUSH connection.
    • onMessageSent

      public void onMessageSent(org.atmosphere.cpr.AtmosphereResource resource)
      Description copied from interface: PushSendListener
      Invoked whenever a UIDL message has been sent to the client.
      Specified by:
      onMessageSent in interface PushSendListener
      Parameters:
      resource - the AtmosphereResource used to process the message