Class NotifyingPushConnection

java.lang.Object
com.vaadin.flow.server.communication.AtmospherePushConnection
com.vaadin.kubernetes.starter.sessiontracker.push.NotifyingPushConnection
All Implemented Interfaces:
com.vaadin.flow.server.communication.FragmentedMessageHolder, com.vaadin.flow.server.communication.PushConnection, Serializable

public class NotifyingPushConnection extends com.vaadin.flow.server.communication.AtmospherePushConnection
AtmospherePushConnection that notifies listeners when a message has been processed.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Service loader implementation to provide NotifyingPushConnections

    Nested classes/interfaces inherited from class com.vaadin.flow.server.communication.AtmospherePushConnection

    com.vaadin.flow.server.communication.AtmospherePushConnection.FragmentedMessage, com.vaadin.flow.server.communication.AtmospherePushConnection.State
  • Constructor Summary

    Constructors
    Constructor
    Description
    NotifyingPushConnection(com.vaadin.flow.component.UI ui)
    Creates an instance connected to the given UI.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    connect(org.atmosphere.cpr.AtmosphereResource resource)
     
    protected void
     

    Methods inherited from class com.vaadin.flow.server.communication.AtmospherePushConnection

    clearFragmentedMessage, connectionLost, disconnect, enableAtmosphereDebugLogging, getAtmosphereVersion, getOrCreateFragmentedMessage, getResource, getState, getUI, isConnected, push, push, receiveMessage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NotifyingPushConnection

      public NotifyingPushConnection(com.vaadin.flow.component.UI ui)
      Creates an instance connected to the given UI.
      Parameters:
      ui - the UI to which this connection belongs
  • Method Details

    • connect

      public void connect(org.atmosphere.cpr.AtmosphereResource resource)
      Overrides:
      connect in class com.vaadin.flow.server.communication.AtmospherePushConnection
    • sendMessage

      protected void sendMessage(String message)
      Overrides:
      sendMessage in class com.vaadin.flow.server.communication.AtmospherePushConnection