Class Notification
java.lang.Object
org.openremote.model.notification.Notification
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
protected AbstractNotificationMessage
protected String
protected RepeatFrequency
protected String
protected List
<Notification.Target> -
Constructor Summary
ConstructorsConstructorDescriptionNotification
(String name, AbstractNotificationMessage message, List<Notification.Target> targets, RepeatFrequency repeatFrequency, String repeatInterval) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
setMessage
(AbstractNotificationMessage message) setRepeatFrequency
(RepeatFrequency repeatFrequency) This applies a fixed time window to a notification i.e.setRepeatInterval
(String repeatInterval) This applies a sliding time window to a notification using an ISO8601 duration string i.e.void
setTargets
(List<Notification.Target> targets) void
setTargets
(Notification.Target... targets) toString()
-
Field Details
-
HEADER_SOURCE
-
HEADER_SOURCE_ID
-
name
-
message
-
repeatFrequency
-
repeatInterval
-
targets
-
-
Constructor Details
-
Notification
public Notification() -
Notification
public Notification(String name, AbstractNotificationMessage message, List<Notification.Target> targets, RepeatFrequency repeatFrequency, String repeatInterval)
-
-
Method Details
-
getName
-
setName
-
getMessage
-
setMessage
-
getTargets
-
setTargets
-
setTargets
-
getRepeatFrequency
-
setRepeatFrequency
This applies a fixed time window to a notification i.e.RepeatFrequency.HOURLY
would mean that a notification sent at 10:59 can then be resent at 11:00. -
getRepeatInterval
-
setRepeatInterval
This applies a sliding time window to a notification using an ISO8601 duration string i.e. a value of PT1H would mean has it been at least 1hr since the notification was last sent. -
toString
-