Module io.helidon.scheduling
Package io.helidon.scheduling
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 SummaryNested classes/interfaces inherited from interface io.helidon.scheduling.FixedRateConfigFixedRateConfig.Builder, FixedRateConfig.BuilderBase<BUILDER extends FixedRateConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends FixedRateConfig> Nested classes/interfaces inherited from interface io.helidon.scheduling.TaskConfigTaskConfig.Builder, TaskConfig.BuilderBase<BUILDER extends TaskConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends TaskConfig> 
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedFixedRateConfigImpl(FixedRateConfig.BuilderBase<?, ?> builder) Create an instance providing a builder.
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.longdelay()Fixed rate delay between each invocation.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()longInitial delay of the first invocation.interval()Fixed interval between each invocation.task()Task to be scheduled for execution.timeUnit()TimeUnitused for interpretation of values provided withFixedRateConfig.BuilderBase.delay(long)andFixedRateConfig.BuilderBase.initialDelay(long).toString()Methods inherited from class io.helidon.scheduling.TaskConfig.BuilderBase.TaskConfigImplexecutor, id, taskManagerMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.scheduling.TaskConfigexecutor, id, taskManager
- 
Constructor Details- 
FixedRateConfigImplCreate an instance providing a builder.- Parameters:
- builder- extending builder base of this prototype
 
 
- 
- 
Method Details- 
buildDescription copied from interface:Prototype.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
- buildin interface- Prototype.Factory<FixedRate>
- Returns:
- new configured runtime instance
 
- 
get
- 
initialDelaypublic long initialDelay()Description copied from interface:FixedRateConfigInitial delay of the first invocation. Time unit is by defaultTimeUnit.SECONDS, can be specified withtimeUnit().- Specified by:
- initialDelayin interface- FixedRateConfig
- Returns:
- initial delay value
 
- 
delaypublic long delay()Description copied from interface:FixedRateConfigFixed rate delay between each invocation. Time unit is by defaultTimeUnit.SECONDS, can be specified withFixedRateConfig.BuilderBase.timeUnit(java.util.concurrent.TimeUnit).- Specified by:
- delayin interface- FixedRateConfig
- Returns:
- delay between each invocation
 
- 
timeUnitDescription copied from interface:FixedRateConfigTimeUnitused for interpretation of values provided withFixedRateConfig.BuilderBase.delay(long)andFixedRateConfig.BuilderBase.initialDelay(long).- Specified by:
- timeUnitin interface- FixedRateConfig
- Returns:
- time unit for interpreting values
         in FixedRateConfig.BuilderBase.delay(long)andFixedRateConfig.BuilderBase.initialDelay(long)
 
- 
delayByDescription copied from interface:FixedRateConfigInitial delay of the first invocation.- Specified by:
- delayByin interface- FixedRateConfig
- Returns:
- initial delay duration
 
- 
intervalDescription copied from interface:FixedRateConfigFixed interval between each invocation.- Specified by:
- intervalin interface- FixedRateConfig
- Returns:
- interval between each invocation
 
- 
delayTypeDescription 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 interface- FixedRateConfig
- Returns:
- delay type
 
- 
taskDescription copied from interface:FixedRateConfigTask to be scheduled for execution.- Specified by:
- taskin interface- FixedRateConfig
- Returns:
- scheduled for execution
 
- 
toString- Overrides:
- toStringin class- TaskConfig.BuilderBase.TaskConfigImpl
 
- 
equals- Overrides:
- equalsin class- TaskConfig.BuilderBase.TaskConfigImpl
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- TaskConfig.BuilderBase.TaskConfigImpl
 
 
-