FixedRate (scheduling) Configuration

Type: io.helidon.scheduling.FixedRate

Configuration options

Required configuration options
keytypedefault valuedescription
delay

long

 

Fixed rate delay between each invocation. Time unit is by default java.util.concurrent.TimeUnit#SECONDS, can be specified with io.helidon.scheduling.Scheduling.FixedRateBuilder#timeUnit(java.util.concurrent.TimeUnit).

@return delay between each invocation
Optional configuration options
keytypedefault valuedescription
delay-type

DelayType (SINCE_PREVIOUS_START, SINCE_PREVIOUS_END)

@io.helidon.scheduling.FixedRate.DelayType@.SINCE_PREVIOUS_START

Configure whether the delay between the invocations should be calculated from the time when previous task started or ended. Delay type is by default FixedRate.DelayType#SINCE_PREVIOUS_START.

@return delay type
initial-delay

long

0

Initial delay of the first invocation. Time unit is by default java.util.concurrent.TimeUnit#SECONDS, can be specified with io.helidon.scheduling.Scheduling.FixedRateBuilder#timeUnit(java.util.concurrent.TimeUnit) timeUnit().

@return initial delay value
time-unit

TimeUnit (NANOSECONDS, MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS)

TimeUnit.SECONDS

java.util.concurrent.TimeUnit TimeUnit used for interpretation of values provided with io.helidon.scheduling.Scheduling.FixedRateBuilder#delay(long) and io.helidon.scheduling.Scheduling.FixedRateBuilder#initialDelay(long).

@return time unit for interpreting values
        in io.helidon.scheduling.Scheduling.FixedRateBuilder#delay(long)
        and io.helidon.scheduling.Scheduling.FixedRateBuilder#initialDelay(long)