Package hudson.model

Class PeriodicWork

    • Constructor Detail

      • PeriodicWork

        public PeriodicWork()
    • Method Detail

      • getRecurrencePeriod

        public abstract long getRecurrencePeriod()
        Gets the number of milliseconds between successive executions.

        Hudson calls this method once to set up a recurring timer, instead of calling this each time after the previous execution completed. So this class cannot be used to implement a non-regular recurring timer.

        IOW, the method should always return the same value.

      • getInitialDelay

        public long getInitialDelay()
        Gets the number of milliseconds til the first execution.

        By default it chooses the value randomly between 0 and getRecurrencePeriod()