Package io.openems.backend.alerting
Class Message
java.lang.Object
io.openems.backend.alerting.Message
- All Implemented Interfaces:
Comparable<Message>
- Direct Known Subclasses:
OfflineEdgeMessage
Properties for one notification.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
getId()
abstract ZonedDateTime
Returns the time stamp at which this message is supposed to be sent.abstract com.google.gson.JsonObject
Get attributes as JsonObject for Mailer.int
hashCode()
boolean
isValid()
-
Constructor Details
-
Message
-
-
Method Details
-
getId
-
isValid
public boolean isValid() -
getNotifyStamp
Returns the time stamp at which this message is supposed to be sent.- Returns:
ZonedDateTime
at which to send this message
-
getParams
public abstract com.google.gson.JsonObject getParams()Get attributes as JsonObject for Mailer.- Returns:
- JsonObject
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Message>
-