java.lang.Object
io.helidon.scheduling.Scheduling.FixedRateBuilder
- All Implemented Interfaces:
Builder<Scheduling.FixedRateBuilder,
,Task> Supplier<Task>
- Enclosing class:
Scheduling
@Deprecated(since="4.0.2",
forRemoval=true)
public static final class Scheduling.FixedRateBuilder
extends Object
implements Builder<Scheduling.FixedRateBuilder,Task>
Deprecated, for removal: This API element is subject to removal in a future version.
Builder for task executed periodically at a fixed rate.
-
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.delay
(long delay) Deprecated, for removal: This API element is subject to removal in a future version.Fixed rate delay between each invocation.executor
(ScheduledExecutorService executorService) Deprecated, for removal: This API element is subject to removal in a future version.CustomScheduledExecutorService
used for executing scheduled task.initialDelay
(long initialDelay) 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.Task to be scheduled for execution.Deprecated, for removal: This API element is subject to removal in a future version.
-
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
-
initialDelay
Deprecated, for removal: This API element is subject to removal in a future version.Initial delay of the first invocation. Time unit is by defaultTimeUnit.SECONDS
, can be specified withtimeUnit()
.- Parameters:
initialDelay
- initial delay value- Returns:
- this builder
-
delay
Deprecated, for removal: This API element is subject to removal in a future version.Fixed rate delay between each invocation. Time unit is by defaultTimeUnit.SECONDS
, can be specified withtimeUnit(java.util.concurrent.TimeUnit)
.- Parameters:
delay
- delay between each invocation- 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
-
timeUnit
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
timeUnit
- for interpreting delay and indelay(long)
andinitialDelay(long)
- 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.FixedRateBuilder,
Task> - Returns:
- instance of the built type
-
FixedRateConfig.Builder
instead