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
Builder for task executed periodically according to provided cron expression.static final class
Builder for task executed periodically at a fixed rate. -
Method Summary
Modifier and TypeMethodDescriptionstatic Scheduling.CronBuilder
Build a task executed periodically according to provided cron expression.static Scheduling.FixedRateBuilder
Build a task executed periodically at a fixed rate.
-
Method Details
-
fixedRateBuilder
Build a task executed periodically at a fixed rate.- Returns:
- this builder
-
cronBuilder
Build a task executed periodically according to provided cron expression.- Returns:
- this builder
-