| Package | Description |
|---|---|
| org.lsst.ccs.utilities.scheduler |
Customized scheduling executor and related classes.
|
| Modifier and Type | Method and Description |
|---|---|
PeriodicTask |
Scheduler.scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit)
Creates and executes a fixedRate action that becomes enabled first after
the given initial delay, and subsequently with the given period.
|
PeriodicTask |
Scheduler.scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit,
String taskName,
Level logLevel)
Creates and executes a fixedRate action that becomes enabled first after
the given initial delay, and subsequently with the given period.
|
PeriodicTask |
Scheduler.scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit,
String taskName,
PeriodicTaskExceptionHandler exceptionHandler)
Creates and executes a fixedRate action that becomes enabled first after
the given initial delay, and subsequently with the given period.
|
PeriodicTask |
Scheduler.scheduleWithFixedDelay(Runnable command,
long initialDelay,
long delay,
TimeUnit unit)
Creates and executes a fixedRate action that becomes enabled first after
the given initial delay, and subsequently with the given delay between
the termination of one execution and the commencement of the next.
|
PeriodicTask |
Scheduler.scheduleWithFixedDelay(Runnable command,
long initialDelay,
long delay,
TimeUnit unit,
String taskName,
Level logLevel)
Creates and executes a fixedRate action that becomes enabled first after
the given initial delay, and subsequently with the given delay between
the termination of one execution and the commencement of the next.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PeriodicTaskExceptionHandler.onException(PeriodicTask task,
Throwable exception)
Called when a task throws an exception, but is not going to be terminated.
|
void |
PeriodicTaskExceptionHandler.onFinalException(PeriodicTask task,
Throwable exception)
Called when a task throws an exception, and is going to be terminated.
|
void |
PeriodicTaskExceptionHandler.onLongExecution(PeriodicTask task)
Called when an execution that takes longer than the task period is detected.
|
void |
PeriodicTaskExceptionHandler.onSkippedExecutions(PeriodicTask task,
int nSkipped)
Called when a fixed rate task executes after skipping one or more previous executions
that could not start on time.
|
Copyright © 2023 LSST. All rights reserved.