Class SchedulerListeners
java.lang.Object
com.github.kagkarlsson.scheduler.event.SchedulerListeners
- All Implemented Interfaces:
SchedulerListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.kagkarlsson.scheduler.event.SchedulerListener
SchedulerListener.CandidateEventType, SchedulerListener.SchedulerEventType -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSchedulerListeners(SchedulerListener... schedulerListeners) SchedulerListeners(List<SchedulerListener> schedulerListeners) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SchedulerListener listener) voidfireAndLogErrors(SchedulerListener listener, String method, Runnable r) voidInternal scheduler event.voidonExecutionComplete(ExecutionComplete executionComplete) ExecutionHandlerdone.voidonExecutionDead(Execution execution) Scheduler has detected a dead execution.voidonExecutionFailedHeartbeat(CurrentlyExecuting currentlyExecuting) Scheduler failed to update heartbeat-timestamp for execution that it is currently executing.voidonExecutionScheduled(TaskInstanceId taskInstanceId, Instant executionTime) Execution scheduled either by theSchedulerClientor by aCompletionHandlervoidonExecutionStart(CurrentlyExecuting currentlyExecuting) Execution picked andExecutionHandlerabout to run.voidInternal scheduler event.
-
Field Details
-
NOOP
-
-
Constructor Details
-
SchedulerListeners
-
SchedulerListeners
-
-
Method Details
-
add
-
onExecutionScheduled
Description copied from interface:SchedulerListenerExecution scheduled either by theSchedulerClientor by aCompletionHandler- Specified by:
onExecutionScheduledin interfaceSchedulerListener
-
onExecutionStart
Description copied from interface:SchedulerListenerExecution picked andExecutionHandlerabout to run. Will typically run in the same thread asonExecutionComplete- Specified by:
onExecutionStartin interfaceSchedulerListener
-
onExecutionComplete
Description copied from interface:SchedulerListenerExecutionHandlerdone. Will typically run in the same thread asonExecutionStart- Specified by:
onExecutionCompletein interfaceSchedulerListener
-
onExecutionDead
Description copied from interface:SchedulerListenerScheduler has detected a dead execution. About to runDeadExecutionHandler.- Specified by:
onExecutionDeadin interfaceSchedulerListener
-
onExecutionFailedHeartbeat
Description copied from interface:SchedulerListenerScheduler failed to update heartbeat-timestamp for execution that it is currently executing. Multiple failures will eventually lead to the execution being declared dead (and itsDeadExecutionHandlertriggered).- Specified by:
onExecutionFailedHeartbeatin interfaceSchedulerListener
-
onSchedulerEvent
Description copied from interface:SchedulerListenerInternal scheduler event. Primarily intended for testing.- Specified by:
onSchedulerEventin interfaceSchedulerListener
-
onCandidateEvent
Description copied from interface:SchedulerListenerInternal scheduler event. Primarily intended for testing.- Specified by:
onCandidateEventin interfaceSchedulerListener
-
fireAndLogErrors
-