Module io.helidon.scheduling
Package io.helidon.scheduling
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 io.helidon.scheduling.TaskConfig
TaskConfig.Builder, TaskConfig.BuilderBase<BUILDER extends TaskConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends TaskConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTaskConfigImpl(TaskConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecutor()CustomScheduledExecutorServiceused for executing scheduled task.inthashCode()id()Identification of the started task.Task manager that will manage the created task.toString()
-
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
-
toString
-
equals
-
hashCode
public int hashCode()
-