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
ModifierConstructorDescriptionprotected
FixedRateConfigImpl
(FixedRateConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Methods inherited from class io.helidon.scheduling.TaskConfig.BuilderBase.TaskConfigImpl
executor
-
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.Factory
Create a new instance of the runtime type from this config object.- Specified by:
build
in interfacePrototype.Factory<FixedRate>
- Returns:
- new configured runtime instance
-
get
-
initialDelay
public long initialDelay() -
delay
public long delay() -
delayType
-
task
-
timeUnit
-
toString
- Overrides:
toString
in classTaskConfig.BuilderBase.TaskConfigImpl
-
equals
- Overrides:
equals
in classTaskConfig.BuilderBase.TaskConfigImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTaskConfig.BuilderBase.TaskConfigImpl
-
executor
ScheduledExecutorService executor()CustomScheduledExecutorService
used for executing scheduled task.- Returns:
- custom ScheduledExecutorService
-