java.lang.Object
io.helidon.scheduling.Scheduling
Scheduling periodically executed task with specified fixed rate or cron expression.
Scheduling.fixedRate()
.delay(2)
.task(inv -> System.out.println("Executed every 2 seconds"))
.build();
Scheduling.cron()
.expression("0 45 9 ? * *")
.task(inv -> System.out.println("Executed every day at 9:45"))
.build()
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Deprecated, for removal: This API element is subject to removal in a future version.static final class
Deprecated, for removal: This API element is subject to removal in a future version.useFixedRateConfig.Builder
instead -
Method Summary
Modifier and TypeMethodDescriptionstatic CronConfig.Builder
cron()
Build a task executed periodically according to provided cron expression.static Scheduling.CronBuilder
Deprecated, for removal: This API element is subject to removal in a future version.usecron()
insteadstatic FixedRateConfig.Builder
Build a task executed periodically at a fixed rate.static Scheduling.FixedRateBuilder
Deprecated, for removal: This API element is subject to removal in a future version.usefixedRate()
instead
-
Method Details
-
fixedRateBuilder
@Deprecated(since="4.0.2", forRemoval=true) public static Scheduling.FixedRateBuilder fixedRateBuilder()Deprecated, for removal: This API element is subject to removal in a future version.usefixedRate()
insteadBuild a task executed periodically at a fixed rate.- Returns:
- this builder
-
fixedRate
Build a task executed periodically at a fixed rate.- Returns:
- this builder
-
cronBuilder
Deprecated, for removal: This API element is subject to removal in a future version.usecron()
insteadBuild a task executed periodically according to provided cron expression.- Returns:
- this builder
-
cron
Build a task executed periodically according to provided cron expression.- Returns:
- this builder
-
CronConfig.Builder
instead