public interface AlertRepository
| Modifier and Type | Method and Description | 
|---|---|
void | 
addAlert(Alert alert)
Add the alert to the repository. 
 | 
Alert | 
getAlertByAlertUid(String alertUid)
Get a specific alert by its  
Alert.getAlertUid() | 
Alert[] | 
getAlertsByGroupUid(String groupUid)
Get an array of alerts matching a  
Alert.getGroupUid(). | 
Iterable<Alert> | 
iterateFifo()
An Iterator over the alerts in the repository from the first alert to arrive to the last. 
 | 
Iterable<Alert> | 
iterateLifo()
An Iterator over the alerts in the repository from the last alert to arrive to the first. 
 | 
Iterable<Iterable<Alert>> | 
list()
An Iterator of Iterators over the alerts in the repository, each iterator groups together
 alerts belonging to the same group UID. 
 | 
int | 
size()
The number of Alerts stored in this alert repository. 
 | 
void addAlert(Alert alert)
alert - the alert to add to the repository.Alert getAlertByAlertUid(String alertUid)
Alert.getAlertUid()alertUid - The alert unique identifiernull if not match was found.Alert[] getAlertsByGroupUid(String groupUid)
Alert.getGroupUid(). The alerts are ordered in a
 LIFO order. Last alert to arrive of the same group will be in index zero, first alert to
 arrive of the same group will be in index size -1.groupUid - The group unique identifierIterable<Alert> iterateFifo()
Iterable<Alert> iterateLifo()
Iterable<Iterable<Alert>> list()
int size()
Copyright © GigaSpaces.