java.lang.Object
io.helidon.scheduling.Scheduling.CronBuilder
- All Implemented Interfaces:
Builder<Scheduling.CronBuilder,
,Task> Supplier<Task>
- Enclosing class:
Scheduling
@Deprecated(since="4.0.2",
forRemoval=true)
public static final class Scheduling.CronBuilder
extends Object
implements Builder<Scheduling.CronBuilder,Task>
Deprecated, for removal: This API element is subject to removal in a future version.
Builder for task executed periodically according to provided cron expression.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated, for removal: This API element is subject to removal in a future version.Build the instance from this builder.concurrentExecution
(boolean allowConcurrentExecution) Deprecated, for removal: This API element is subject to removal in a future version.Allow concurrent execution if previous task didn't finish before next execution.executor
(ScheduledExecutorService executorService) Deprecated, for removal: This API element is subject to removal in a future version.CustomScheduledExecutorService
used for executing scheduled task.expression
(String cronExpression) Deprecated, for removal: This API element is subject to removal in a future version.Cron expression for specifying period of execution.task
(ScheduledConsumer<CronInvocation> task) Deprecated, for removal: This API element is subject to removal in a future version.Task to be scheduled for execution.
-
Method Details
-
executor
Deprecated, for removal: This API element is subject to removal in a future version.CustomScheduledExecutorService
used for executing scheduled task.- Parameters:
executorService
- custom ScheduledExecutorService- Returns:
- this builder
-
expression
Deprecated, for removal: This API element is subject to removal in a future version.Cron expression for specifying period of execution.Examples:
0/2 * * * * ? *
- Every 2 seconds0 45 9 ? * *
- Every day at 9:450 15 8 ? * MON-FRI
- Every workday at 8:15
- Parameters:
cronExpression
- cron expression- Returns:
- this builder
-
concurrentExecution
Deprecated, for removal: This API element is subject to removal in a future version.Allow concurrent execution if previous task didn't finish before next execution. Default value istrue
.- Parameters:
allowConcurrentExecution
- true for allow concurrent execution.- Returns:
- this builder
-
task
Deprecated, for removal: This API element is subject to removal in a future version.Task to be scheduled for execution.- Parameters:
task
- scheduled for execution- Returns:
- this builder
-
build
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<Scheduling.CronBuilder,
Task> - Returns:
- instance of the built type
-
CronConfig.Builder
instead