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 Summary
Nested classes/interfaces inherited from interface io.helidon.scheduling.FixedRateConfig
FixedRateConfig.Builder, FixedRateConfig.BuilderBase<BUILDER extends FixedRateConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends FixedRateConfig> 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
ConstructorsModifierConstructorDescriptionprotectedFixedRateConfigImpl(FixedRateConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.longdelay()Deprecated, for removal: This API element is subject to removal in a future version.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()longDeprecated, for removal: This API element is subject to removal in a future version.interval()Fixed interval between each invocation.task()Task to be scheduled for execution.timeUnit()Deprecated, for removal: This API element is subject to removal in a future version.toString()Methods inherited from class io.helidon.scheduling.TaskConfig.BuilderBase.TaskConfigImpl
enabled, executor, id, taskManagerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.scheduling.TaskConfig
enabled, executor, id, taskManager
-
Constructor Details
-
FixedRateConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
buildin interfacePrototype.Factory<FixedRate>- Returns:
- new configured runtime instance
-
get
-
initialDelay
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:FixedRateConfigInitial delay of the first invocation. Time unit is by defaultTimeUnit.SECONDS, can be specified withtimeUnit().- Specified by:
initialDelayin interfaceFixedRateConfig- Returns:
- initial delay value
-
delay
Deprecated, for removal: This API element is subject to removal in a future version.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 interfaceFixedRateConfig- Returns:
- delay between each invocation
-
timeUnit
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:FixedRateConfigTimeUnitused for interpretation of values provided withFixedRateConfig.BuilderBase.delay(long)andFixedRateConfig.BuilderBase.initialDelay(long).- Specified by:
timeUnitin interfaceFixedRateConfig- Returns:
- time unit for interpreting values
in
FixedRateConfig.BuilderBase.delay(long)andFixedRateConfig.BuilderBase.initialDelay(long)
-
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
-