Annotation Type FixedRate
-
@Retention(RUNTIME) @Target(METHOD) public @interface FixedRate
Scheduled to be invoked periodically at fixed rate. Value is interpreted as seconds by default, can be overridden bytimeUnit()
.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description long
value
Fixed rate for periodical invocation.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description long
initialDelay
Initial delay of the first invocation.TimeUnit
timeUnit
Time unit for interpreting supplied values.
-
-
-
-
timeUnit
TimeUnit timeUnit
Time unit for interpreting supplied values.- Returns:
- time unit for evaluating supplied values
- Default:
- java.util.concurrent.TimeUnit.SECONDS
-
-