Package io.kestra.core.schedulers
Class AbstractScheduler
java.lang.Object
io.kestra.core.schedulers.AbstractScheduler
- All Implemented Interfaces:
Scheduler,AutoCloseable,Runnable
- Direct Known Subclasses:
DefaultScheduler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.micronaut.context.ApplicationContextprotected final FlowListenersInterfaceprotected Booleanprotected SchedulerTriggerStateInterfaceprotected final Object -
Constructor Summary
ConstructorsConstructorDescriptionAbstractScheduler(io.micronaut.context.ApplicationContext applicationContext, FlowListenersInterface flowListeners) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidrun()protected voidsaveLastTriggerAndEmitExecution(SchedulerExecutionWithTrigger executionWithTrigger)
-
Field Details
-
applicationContext
protected final io.micronaut.context.ApplicationContext applicationContext -
flowListeners
-
isReady
-
triggerStateSavedLock
-
triggerState
-
-
Constructor Details
-
AbstractScheduler
@Inject public AbstractScheduler(io.micronaut.context.ApplicationContext applicationContext, FlowListenersInterface flowListeners)
-
-
Method Details
-
run
public void run() -
saveLastTriggerAndEmitExecution
-
close
@PreDestroy public void close()- Specified by:
closein interfaceAutoCloseable
-