Class FixedRateConfig.BuilderBase.FixedRateConfigImpl
java.lang.Object
io.helidon.scheduling.TaskConfig.BuilderBase.TaskConfigImpl
io.helidon.scheduling.FixedRateConfig.BuilderBase.FixedRateConfigImpl
- All Implemented Interfaces:
Prototype.Api, Prototype.Factory<FixedRate>, FixedRateConfig, TaskConfig, Supplier<FixedRate>
- Enclosing class:
FixedRateConfig.BuilderBase<BUILDER extends FixedRateConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends FixedRateConfig>
protected static class FixedRateConfig.BuilderBase.FixedRateConfigImpl
extends TaskConfig.BuilderBase.TaskConfigImpl
implements FixedRateConfig, Supplier<FixedRate>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface FixedRateConfig
FixedRateConfig.Builder, FixedRateConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forFixedRate.static classFixedRateConfig.BuilderBase<BUILDER extends FixedRateConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends FixedRateConfig>Fluent API builder base forFixedRateConfig.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
ConstructorsModifierConstructorDescriptionprotectedFixedRateConfigImpl(FixedRateConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new runtime instance from this prototype.delayBy()Initial delay of the first invocation.Configure whether the interval between the invocations should be calculated from the time when previous task started or ended.booleanget()inthashCode()interval()Fixed interval between each invocation.task()Task to be scheduled for execution.toString()Methods inherited from class TaskConfig.BuilderBase.TaskConfigImpl
enabled, executor, id, taskManagerModifier and TypeMethodDescriptionbooleanenabled()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.
-
Constructor Details
-
FixedRateConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Create a new runtime instance from this prototype.- Specified by:
buildin interfacePrototype.Factory<FixedRate>- Returns:
- new configured runtime instance
-
get
-
delayBy
Description copied from interface:FixedRateConfigInitial delay of the first invocation.- Specified by:
delayByin interfaceFixedRateConfig- Returns:
- initial delay duration
-
interval
Description copied from interface:FixedRateConfigFixed interval between each invocation.- Specified by:
intervalin interfaceFixedRateConfig- Returns:
- interval between each invocation
-
delayType
Description copied from interface:FixedRateConfigConfigure whether the interval between the invocations should be calculated from the time when previous task started or ended. Delay type is by defaultFixedRate.DelayType.SINCE_PREVIOUS_START.- Specified by:
delayTypein interfaceFixedRateConfig- Returns:
- delay type
-
task
Description copied from interface:FixedRateConfigTask to be scheduled for execution.- Specified by:
taskin interfaceFixedRateConfig- Returns:
- scheduled for execution
-
toString
- Overrides:
toStringin classTaskConfig.BuilderBase.TaskConfigImpl
-
equals
- Overrides:
equalsin classTaskConfig.BuilderBase.TaskConfigImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classTaskConfig.BuilderBase.TaskConfigImpl
-