public class CachedAlertFlushService
extends com.google.common.util.concurrent.AbstractScheduledService
CachedAlertFlushService
is used to periodically flush cached
alert data to the database. This service is controlled by
Configuration.isAlertCacheEnabled()
and
Configuration.getAlertCacheFlushInterval()
.Constructor and Description |
---|
CachedAlertFlushService() |
Modifier and Type | Method and Description |
---|---|
protected void |
runOneIteration()
Flushes cached alerts to the database.
|
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler |
scheduler() |
protected void |
startUp()
Invokes
#stop() if not enabled. |
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler scheduler()
scheduler
in class com.google.common.util.concurrent.AbstractScheduledService
protected void startUp() throws Exception
#stop()
if not enabled.startUp
in class com.google.common.util.concurrent.AbstractScheduledService
Exception
Copyright © 2022 Apache Software Foundation. All rights reserved.