Module io.helidon.scheduling
Package io.helidon.scheduling
Class CronConfig.BuilderBase.CronConfigImpl
java.lang.Object
io.helidon.scheduling.TaskConfig.BuilderBase.TaskConfigImpl
io.helidon.scheduling.CronConfig.BuilderBase.CronConfigImpl
- All Implemented Interfaces:
 Prototype.Api,Prototype.Factory<Cron>,CronConfig,TaskConfig,Supplier<Cron>
- Enclosing class:
 CronConfig.BuilderBase<BUILDER extends CronConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends CronConfig> 
protected static class CronConfig.BuilderBase.CronConfigImpl
extends TaskConfig.BuilderBase.TaskConfigImpl
implements CronConfig, Supplier<Cron>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
- 
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.scheduling.CronConfig
CronConfig.Builder, CronConfig.BuilderBase<BUILDER extends CronConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends CronConfig> 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
ConstructorsModifierConstructorDescriptionprotectedCronConfigImpl(CronConfig.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.booleanAllow concurrent execution if previous task didn't finish before next execution.booleanCron expression for specifying period of execution.get()inthashCode()task()Task to be scheduled for execution.toString()Methods inherited from class io.helidon.scheduling.TaskConfig.BuilderBase.TaskConfigImpl
executor, id, taskManagerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.scheduling.TaskConfig
executor, id, taskManager 
- 
Constructor Details
- 
CronConfigImpl
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<Cron>- Returns:
 - new configured runtime instance
 
 - 
get
 - 
expression
Description copied from interface:CronConfigCron expression for specifying period of execution.Examples:
0/2 * * * * ? *- Every 2 seconds0 45 9 ? * *- Every day at 9:450 15 8 ? * MON-FRI- Every workday at 8:15
- Specified by:
 expressionin interfaceCronConfig- Returns:
 - cron expression
 
 - 
concurrentExecution
public boolean concurrentExecution()Description copied from interface:CronConfigAllow concurrent execution if previous task didn't finish before next execution. Default value istrue.- Specified by:
 concurrentExecutionin interfaceCronConfig- Returns:
 - true for allow concurrent execution.
 
 - 
task
Description copied from interface:CronConfigTask to be scheduled for execution.- Specified by:
 taskin interfaceCronConfig- 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
 
 -