| Modifier and Type | Field and Description |
|---|---|
static Duration |
DEFAULT_THRESHOLD_DETECTION |
| Constructor and Description |
|---|
LongRunningJobMonitor(Scheduler scheduler)
Create a new
LongRunningJobMonitor with a 5 minutes detection threshold. |
LongRunningJobMonitor(Scheduler scheduler,
Duration detectionThreshold)
Create a new
LongRunningJobMonitor. |
LongRunningJobMonitor(Scheduler scheduler,
Duration detectionThreshold,
TimeProvider timeProvider)
Create a new
LongRunningJobMonitor. |
public static final Duration DEFAULT_THRESHOLD_DETECTION
public LongRunningJobMonitor(Scheduler scheduler, Duration detectionThreshold, TimeProvider timeProvider)
LongRunningJobMonitor.scheduler - The scheduler that will be monitoreddetectionThreshold - The threshold after which a message will be logged if the job takes longer to executetimeProvider - The time provider used to calculate long running jobspublic LongRunningJobMonitor(Scheduler scheduler, Duration detectionThreshold)
LongRunningJobMonitor.scheduler - The scheduler that will be monitoreddetectionThreshold - The threshold after which a message will be logged if the job takes longer to executepublic LongRunningJobMonitor(Scheduler scheduler)
LongRunningJobMonitor with a 5 minutes detection threshold.scheduler - The scheduler that will be monitoredCopyright © 2023 Coreoz. All rights reserved.