Interface FixedRateConfig
- All Superinterfaces:
Prototype.Api, Prototype.Factory<FixedRate>, TaskConfig
- All Known Implementing Classes:
FixedRateConfig.BuilderBase.FixedRateConfigImpl
Interface generated from blueprint
io.helidon.scheduling.FixedRateConfigBlueprint. Please add javadoc to blueprint, as it is currently missing.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forFixedRate.static classFixedRateConfig.BuilderBase<BUILDER extends FixedRateConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends FixedRateConfig>Fluent API builder base forFixedRateConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic FixedRateConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static FixedRateConfig.Builderbuilder(FixedRateConfig instance) Create a new fluent API builder from an existing instance.static FixedRateConfigCreate a new instance from configuration.delayBy()Initial delay of the first invocation.Configure whether the interval between the invocations should be calculated from the time when previous task started or ended.interval()Fixed interval between each invocation.task()Task to be scheduled for execution.Methods inherited from interface Prototype.Factory
buildMethods inherited from interface TaskConfig
enabled, executor, id, taskManagerModifier and TypeMethodDescriptionbooleanenabled()Whether the task is enabled.executor()CustomScheduledExecutorServiceused for executing scheduled task.id()Identification of the started task.Task manager that will manage the created task.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
delayBy
-
interval
Duration interval()Fixed interval between each invocation.- Returns:
- interval between each invocation
-
delayType
FixedRate.DelayType delayType()Configure whether the interval between the invocations should be calculated from the time when previous task started or ended. Delay type is by defaultFixedRate.DelayType.SINCE_PREVIOUS_START.- Returns:
- delay type
-
task
ScheduledConsumer<FixedRateInvocation> task()Task to be scheduled for execution.- Returns:
- scheduled for execution
-