Annotation Interface FixedRate
@Retention(RUNTIME)
@Target(METHOD)
@Deprecated(forRemoval=true,
since="4.3.0")
public @interface FixedRate
Deprecated, for removal: This API element is subject to removal in a future version.
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
Required ElementsModifier and TypeRequired ElementDescriptionlong
Deprecated, for removal: This API element is subject to removal in a future version.Fixed rate for periodical invocation. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Whether the delay should be calculated from the start or end of the previous task.long
Deprecated, for removal: This API element is subject to removal in a future version.Initial delay of the first invocation.Deprecated, for removal: This API element is subject to removal in a future version.Time unit for interpreting supplied values.
-
Element Details
-
value
long valueDeprecated, for removal: This API element is subject to removal in a future version.Fixed rate for periodical invocation.- Returns:
- fixed rate interval
-
initialDelay
long initialDelayDeprecated, for removal: This API element is subject to removal in a future version.Initial delay of the first invocation.- Returns:
- initial delay
- Default:
0L
-
timeUnit
TimeUnit timeUnitDeprecated, for removal: This API element is subject to removal in a future version.Time unit for interpreting supplied values.- Returns:
- time unit for evaluating supplied values
- Default:
SECONDS
-
delayType
FixedRate.DelayType delayTypeDeprecated, for removal: This API element is subject to removal in a future version.Whether the delay should be calculated from the start or end of the previous task.- Returns:
- delay type
- Default:
SINCE_PREVIOUS_START
-
Scheduling.FixedRate
instead