Class FixedRateConfig.Builder
java.lang.Object
io.helidon.scheduling.TaskConfig.BuilderBase<FixedRateConfig.Builder, FixedRateConfig>
io.helidon.scheduling.FixedRateConfig.BuilderBase<FixedRateConfig.Builder, FixedRateConfig>
io.helidon.scheduling.FixedRateConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<FixedRateConfig.Builder, FixedRateConfig>, Builder<FixedRateConfig.Builder, FixedRate>, ConfigBuilderSupport.ConfiguredBuilder<FixedRateConfig.Builder, FixedRateConfig>, Supplier<FixedRate>
- Enclosing interface:
FixedRateConfig
public static class FixedRateConfig.Builder
extends FixedRateConfig.BuilderBase<FixedRateConfig.Builder, FixedRateConfig>
implements Builder<FixedRateConfig.Builder, FixedRate>
Fluent API builder for
FixedRate.-
Nested Class Summary
Nested classes/interfaces inherited from class FixedRateConfig.BuilderBase
FixedRateConfig.BuilderBase.FixedRateConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class TaskConfig.BuilderBase
TaskConfig.BuilderBase.TaskConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class FixedRateConfig.BuilderBase
config, delayBy, delayBy, delayType, delayType, from, from, interval, interval, preBuildPrototype, task, task, toString, validatePrototypeModifier and TypeMethodDescriptionUpdate builder from configuration (node of this type).delayBy()Initial delay of the first invocation.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.delayType(FixedRate.DelayType delayType) Configure whether the interval between the invocations should be calculated from the time when previous task started or ended.from(FixedRateConfig prototype) Update this builder from an existing prototype instance.from(FixedRateConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.interval()Fixed interval between each invocation.Fixed interval between each invocation.protected voidHandles providers and decorators.task()Task to be scheduled for execution.Task to be scheduled for execution.toString()protected voidValidates required properties.Methods inherited from class TaskConfig.BuilderBase
clearId, config, enabled, enabled, executor, executor, from, from, id, id, serviceRegistry, serviceRegistry, taskManager, taskManager, taskManagerDiscoverServices, taskManagerDiscoverServicesModifier and TypeMethodDescriptionclearId()Clear existing value of id.config()Configuration used to configure this instance.booleanenabled()Whether the task is enabled.enabled(boolean enabled) Whether the task is enabled.executor()CustomScheduledExecutorServiceused for executing scheduled task.executor(ScheduledExecutorService executor) CustomScheduledExecutorServiceused for executing scheduled task.from(TaskConfig prototype) Update this builder from an existing prototype instance.from(TaskConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.id()Identification of the started task.Identification of the started task.Service registry used to discover providers and services.serviceRegistry(ServiceRegistry serviceRegistry) Service registry used to discover providers and services.Task manager that will manage the created task.taskManager(TaskManager taskManager) Task manager that will manage the created task.booleanService discovery flag forTaskConfig.BuilderBase.taskManager().taskManagerDiscoverServices(boolean taskManagerDiscoverServices) Service discovery flag forTaskConfig.BuilderBase.taskManager().Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault FixedRateget()default FixedRateConfig.Builderidentity()Instance of this builder as the correct type.default FixedRateConfig.Builderupdate(Consumer<FixedRateConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault FixedRateConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<FixedRateConfig.Builder, FixedRateConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<FixedRateConfig.Builder, FixedRate>- Returns:
- instance of the built type
-