Class Poller


  • public class Poller
    extends Object
    Handles polling the server with a given interval.
    Since:
    1.0
    Author:
    Vaadin Ltd
    • 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.