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
ConstructorsModifierConstructorDescriptionprotected
TaskConfigImpl
(TaskConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionboolean
executor()
CustomScheduledExecutorService
used for executing scheduled task.int
hashCode()
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:TaskConfig
CustomScheduledExecutorService
used for executing scheduled task.- Specified by:
executor
in interfaceTaskConfig
- Returns:
- custom ScheduledExecutorService
-
taskManager
Description copied from interface:TaskConfig
Task manager that will manage the created task.- Specified by:
taskManager
in interfaceTaskConfig
- Returns:
- task manager, by default taken from the global service registry
-
id
Description copied from interface:TaskConfig
Identification of the started task. This can be used to later look up the instance, for example to cancel it.- Specified by:
id
in 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()
-