Package com.vaadin.client.communication
Class Poller
java.lang.Object
com.vaadin.client.communication.Poller
Handles polling the server with a given interval.
- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpoll()Polls the server for changes.voidsetInterval(int interval) Sets the polling interval.
-
Constructor Details
-
Poller
Creates a new instance using the given registry.- Parameters:
registry- the registry
-
-
Method Details
-
setInterval
public void setInterval(int interval) Sets the polling interval.Changing the polling interval will stop any current polling and schedule a new poll to happen after the given interval.
- Parameters:
interval- The interval to use
-
poll
public void poll()Polls the server for changes.
-