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 ClassesModifier and TypeClassDescriptionstatic classService loader implementation to provideNotifyingPushConnectionsNested 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
ConstructorsConstructorDescriptionNotifyingPushConnection(com.vaadin.flow.component.UI ui) Creates an instance connected to the given UI. -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(org.atmosphere.cpr.AtmosphereResource resource) protected voidsendMessage(String message) Methods inherited from class com.vaadin.flow.server.communication.AtmospherePushConnection
clearFragmentedMessage, connectionLost, disconnect, enableAtmosphereDebugLogging, getAtmosphereVersion, getOrCreateFragmentedMessage, getResource, getState, getUI, isConnected, push, push, receiveMessage
-
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:
connectin classcom.vaadin.flow.server.communication.AtmospherePushConnection
-
sendMessage
- Overrides:
sendMessagein classcom.vaadin.flow.server.communication.AtmospherePushConnection
-