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>

protected static class TaskConfig.BuilderBase.TaskConfigImpl extends Object implements TaskConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • TaskConfigImpl

      protected TaskConfigImpl(TaskConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • executor

      public ScheduledExecutorService executor()
      Description copied from interface: TaskConfig
      Custom ScheduledExecutorService used for executing scheduled task.
      Specified by:
      executor in interface TaskConfig
      Returns:
      custom ScheduledExecutorService
    • taskManager

      public TaskManager taskManager()
      Description copied from interface: TaskConfig
      Task manager that will manage the created task.
      Specified by:
      taskManager in interface TaskConfig
      Returns:
      task manager, by default taken from the global service registry
    • id

      public Optional<String> 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 interface TaskConfig
      Returns:
      task id, if not provided via configuration or builder, the configured task will generate a unique ID
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object