Class OfflineEdgeMessage
java.lang.Object
io.openems.backend.alerting.Message
io.openems.backend.alerting.message.OfflineEdgeMessage
- All Implemented Interfaces:
Comparable<Message>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRecipient
(AlertingSetting setting) Add a recipient with its delay to the message.int
Returns the time stamp at which this message is supposed to be sent.com.google.gson.JsonObject
Get attributes as JsonObject for Mailer.boolean
isEmpty()
toString()
boolean
update()
Transform message to use for next cycle.
-
Field Details
-
TEMPLATE
- See Also:
-
-
Constructor Details
-
OfflineEdgeMessage
-
-
Method Details
-
getNotifyStamp
Description copied from class:Message
Returns the time stamp at which this message is supposed to be sent.- Specified by:
getNotifyStamp
in classMessage
- Returns:
ZonedDateTime
at which to send this message
-
addRecipient
Add a recipient with its delay to the message.- Parameters:
setting
- of user to whom to send the mail to
-
getCurrentRecipients
-
getMessageCount
public int getMessageCount() -
update
public boolean update()Transform message to use for next cycle.- Returns:
- next Message with updated Recipients
-
getEdgeId
-
isEmpty
public boolean isEmpty() -
getParams
public com.google.gson.JsonObject getParams()Description copied from class:Message
Get attributes as JsonObject for Mailer. -
toString
-