Package com.qfs.snl.alerts
Interface IAlertCache
- All Known Implementing Classes:
AlertCache
public interface IAlertCache
Definition of a simple cache for alerts, storing only alerts that are currently running.
- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAlerts
(Collection<? extends ISentinelAlert> alerts) Add a series of alerts to the cache.void
clear()
Empty this cache.Retrieve all the alerts cached.void
stopAlerts
(Collection<? extends ISentinelAlert> stoppedAlerts) Process a series of stopped alerts, removing them from the cache.void
Stops all alerts.
-
Method Details
-
getAlerts
Collection<ISentinelAlert> getAlerts()Retrieve all the alerts cached.- Returns:
- collection of ISentinelAlert in this cache
-
addAlerts
Add a series of alerts to the cache.- Parameters:
alerts
- alerts to add
-
stopAlerts
Process a series of stopped alerts, removing them from the cache.- Parameters:
stoppedAlerts
- alerts that were stopped
-
stopAllAlerts
void stopAllAlerts()Stops all alerts. -
clear
void clear()Empty this cache.
-