Interface TaskConfig
- All Superinterfaces:
Prototype.Api
- All Known Subinterfaces:
CronConfig, FixedRateConfig
- All Known Implementing Classes:
CronConfig.BuilderBase.CronConfigImpl, FixedRateConfig.BuilderBase.FixedRateConfigImpl, TaskConfig.BuilderBase.TaskConfigImpl
Interface generated from blueprint
io.helidon.scheduling.TaskConfigBlueprint. Please add javadoc to blueprint, as it is currently missing.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forTaskConfig.static classTaskConfig.BuilderBase<BUILDER extends TaskConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends TaskConfig>Fluent API builder base forTaskConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static TaskConfig.Builderbuilder(TaskConfig instance) Create a new fluent API builder from an existing instance.static TaskConfigcreate()Create a new instance with default values.static TaskConfigCreate a new instance from configuration.booleanenabled()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
-
create
-
executor
ScheduledExecutorService executor()CustomScheduledExecutorServiceused for executing scheduled task.- Returns:
- custom ScheduledExecutorService
-
taskManager
TaskManager taskManager()Task manager that will manage the created task.- Returns:
- task manager, by default taken from the global service registry
-
id
-
enabled
boolean enabled()Whether the task is enabled. If disabled, the task will not be scheduled. Default value istrue.- Returns:
- true if the task should be scheduled
-