Class FixedRateTask

    • Constructor Detail

      • FixedRateTask

        public FixedRateTask​(Runnable runnable,
                             long interval,
                             long initialDelay)
        Create a new FixedRateTask.
        Parameters:
        runnable - the underlying task to execute
        interval - how often in milliseconds the task should be executed
        initialDelay - the initial delay before first execution of the task