Configuration options

Table 1. Required configuration options
key type default value description

delay

long

 

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

@deprecated use io.helidon.scheduling.FixedRateConfig.interval() instead

initial-delay

long

 

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

@deprecated use io.helidon.scheduling.FixedRateConfig.delayBy() instead

interval

Duration

 

Fixed interval between each invocation.

Table 2. Optional configuration options
key type default value description

delay-by

Duration

PT0S

Initial delay of the first invocation.

delay-type

DelayType (SINCE_PREVIOUS_START, SINCE_PREVIOUS_END)

DelayType.SINCE_PREVIOUS_START

Configure whether the interval 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.

Allowed values:

  • SINCE_PREVIOUS_START: Next invocation start is measured from the previous invocation task start.

  • SINCE_PREVIOUS_END: Next invocation start is measured from the previous invocation task end.

id

string

 

Identification of the started task. This can be used to later look up the instance, for example to cancel it.

time-unit

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

TimeUnit.TimeUnit.SECONDS

Deprecated java.util.concurrent.TimeUnit TimeUnit used for interpretation of values provided with io.helidon.scheduling.FixedRateConfig.Builder.delay(long) and io.helidon.scheduling.FixedRateConfig.Builder.initialDelay(long).

@deprecated as duration is used for new options, this option is not needed