public class EmailDestination extends Object implements Destination
Constructor and Description |
---|
EmailDestination() |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(NorthboundAlarm alarm)
Accepts.
|
List<EmailFilter> |
getFilters()
Gets the filters.
|
String |
getName()
Gets the destination name.
|
boolean |
isFirstOccurrenceOnly()
Checks if is first occurrence only.
|
void |
setFilters(List<EmailFilter> filters)
Sets the filters.
|
void |
setName(String name)
Sets the name.
|
public boolean isFirstOccurrenceOnly()
Destination
isFirstOccurrenceOnly
in interface Destination
public String getName()
Destination
getName
in interface Destination
public void setName(String name)
name
- the new namepublic List<EmailFilter> getFilters()
public void setFilters(List<EmailFilter> filters)
filters
- the new filterspublic boolean accepts(NorthboundAlarm alarm)
If the destination doesn't have filter, the method will return true.
If the method has filters, they will be evaluated. If no filters are satisfied, the method will return false. Otherwise, the method will return true as soon as one filter is satisfied.
alarm
- the alarmCopyright © 2021. All rights reserved.