Package com.vaadin.client.communication
Class Poller
- java.lang.Object
-
- com.vaadin.client.communication.Poller
-
public class Poller extends Object
Handles polling the server with a given interval.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpoll()Polls the server for changes.voidsetInterval(int interval)Sets the polling interval.
-
-
-
Constructor Detail
-
Poller
public Poller(Registry registry)
Creates a new instance using the given registry.- Parameters:
registry- the registry
-
-
Method Detail
-
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.
-
-