- All Superinterfaces:
Prototype.Api,Prototype.Factory<FixedRate>,TaskConfig
- All Known Implementing Classes:
FixedRateConfig.BuilderBase.FixedRateConfigImpl
Interface generated from blueprint
io.helidon.scheduling.FixedRateConfigBlueprint. Please add javadoc to blueprint, as it is currently missing.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forFixedRate.static classFixedRateConfig.BuilderBase<BUILDER extends FixedRateConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends FixedRateConfig> Fluent API builder base forFixedRateConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic FixedRateConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static FixedRateConfig.Builderbuilder(FixedRateConfig instance) Create a new fluent API builder from an existing instance.static FixedRateConfigcreate()Create a new instance with default values.static FixedRateConfigDeprecated.static FixedRateConfigCreate a new instance from configuration.longdelay()Deprecated, for removal: This API element is subject to removal in a future version.This option is deprecated, useinterval()insteaddelayBy()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.longDeprecated, for removal: This API element is subject to removal in a future version.This option is deprecated, usedelayBy()insteadinterval()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.as duration is used for new options, this option is not neededMethods inherited from interface io.helidon.builder.api.Prototype.Factory
buildMethods inherited from interface io.helidon.scheduling.TaskConfig
enabled, executor, id, taskManager
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
initialDelay
Deprecated, for removal: This API element is subject to removal in a future version.This option is deprecated, usedelayBy()insteadInitial delay of the first invocation. Time unit is by defaultTimeUnit.SECONDS, can be specified withtimeUnit().- Returns:
- initial delay value
-
delay
Deprecated, for removal: This API element is subject to removal in a future version.This option is deprecated, useinterval()insteadFixed rate delay between each invocation. Time unit is by defaultTimeUnit.SECONDS, can be specified withFixedRateConfig.BuilderBase.timeUnit(java.util.concurrent.TimeUnit).- Returns:
- delay between each invocation
-
timeUnit
Deprecated, for removal: This API element is subject to removal in a future version.as duration is used for new options, this option is not neededTimeUnitused for interpretation of values provided withFixedRateConfig.BuilderBase.delay(long)andFixedRateConfig.BuilderBase.initialDelay(long).- Returns:
- time unit for interpreting values
in
FixedRateConfig.BuilderBase.delay(long)andFixedRateConfig.BuilderBase.initialDelay(long)
-
delayBy
Duration delayBy()Initial delay of the first invocation.- Returns:
- initial delay duration
-
interval
Duration interval()Fixed interval between each invocation.- Returns:
- interval between each invocation
-
delayType
FixedRate.DelayType delayType()Configure 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.- Returns:
- delay type
-
task
ScheduledConsumer<FixedRateInvocation> task()Task to be scheduled for execution.- Returns:
- scheduled for execution
-
create(io.helidon.config.Config)