Package com.vaadin.flow.component
Interface PollNotifier
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
UI
,WebComponentUI
The interface for adding and removing
PollEvent
listeners.
By implementing this interface, a class publicly announces that it is able to
send PollEvents
whenever the client sends a periodic poll
message to the client, to check for asynchronous server-side modifications.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault Registration
addPollListener
(ComponentEventListener<PollEvent> listener) Add a poll listener.
-
Method Details
-
addPollListener
Add a poll listener.The listener is called whenever the client polls the server for asynchronous UI updates.
- Parameters:
listener
- the listener to add- Returns:
- a handle that can be used for removing the listener
- See Also:
-