Class PollingStrategies

    • Method Detail

      • nop

        public static PollingStrategy nop()
        Provides a default polling strategy that does not fire an event at all.
        Returns:
        no-operation polling strategy instance
      • regular

        public static PollingStrategies.ScheduledBuilder regular​(Duration interval)
        Provides a scheduled polling strategy with a specified constant interval.
        Parameters:
        interval - an interval between polling
        Returns:
        a regular polling strategy
      • watch

        public static PollingStrategies.FilesystemWatchBuilder watch​(Path watchedPath)
        Provides a filesystem watch polling strategy with a specified watched path.
        Parameters:
        watchedPath - a path which should be watched
        Returns:
        a filesystem watching polling strategy