Annotation Interface FixedRate
Scheduled to be invoked periodically at fixed rate. Fixed rate tasks are never invoked concurrently.
Value is interpreted as seconds by default, can be overridden by
timeUnit()
.-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionWhether the delay should be calculated from the start or end of the previous task.long
Initial delay of the first invocation.Time unit for interpreting supplied values.
-
Element Details
-
value
long valueFixed rate for periodical invocation.- Returns:
- fixed rate interval
-
initialDelay
long initialDelayInitial delay of the first invocation.- Returns:
- initial delay
- Default:
0L
-
timeUnit
TimeUnit timeUnitTime unit for interpreting supplied values.- Returns:
- time unit for evaluating supplied values
- Default:
SECONDS
-
delayType
FixedRate.DelayType delayTypeWhether the delay should be calculated from the start or end of the previous task.- Returns:
- delay type
- Default:
SINCE_PREVIOUS_START
-