Class TaskConfig.BuilderBase.TaskConfigImpl
java.lang.Object
io.helidon.scheduling.TaskConfig.BuilderBase.TaskConfigImpl
- All Implemented Interfaces:
Prototype.Api, TaskConfig
- Direct Known Subclasses:
CronConfig.BuilderBase.CronConfigImpl, FixedRateConfig.BuilderBase.FixedRateConfigImpl
- Enclosing class:
TaskConfig.BuilderBase<BUILDER extends TaskConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends TaskConfig>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface TaskConfig
TaskConfig.Builder, TaskConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forTaskConfig.static classTaskConfig.BuilderBase<BUILDER extends TaskConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends TaskConfig>Fluent API builder base forTaskConfig. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTaskConfigImpl(TaskConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
-
Constructor Details
-
TaskConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
executor
Description copied from interface:TaskConfigCustomScheduledExecutorServiceused for executing scheduled task.- Specified by:
executorin interfaceTaskConfig- Returns:
- custom ScheduledExecutorService
-
taskManager
Description copied from interface:TaskConfigTask manager that will manage the created task.- Specified by:
taskManagerin interfaceTaskConfig- Returns:
- task manager, by default taken from the global service registry
-
id
Description copied from interface:TaskConfigIdentification of the started task. This can be used to later look up the instance, for example to cancel it.- Specified by:
idin interfaceTaskConfig- Returns:
- task id, if not provided via configuration or builder, the configured task will generate a unique ID
-
enabled
public boolean enabled()Description copied from interface:TaskConfigWhether the task is enabled. If disabled, the task will not be scheduled. Default value istrue.- Specified by:
enabledin interfaceTaskConfig- Returns:
- true if the task should be scheduled
-
toString
-
equals
-
hashCode
-