Package io.openems.backend.alerting
Class Message
- java.lang.Object
-
- io.openems.backend.alerting.Message
-
- All Implemented Interfaces:
java.lang.Comparable<Message>
- Direct Known Subclasses:
OfflineEdgeMessage
public abstract class Message extends java.lang.Object implements java.lang.Comparable<Message>
Properties for one notification.
-
-
Constructor Summary
Constructors Constructor Description Message(java.lang.String messageId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(Message o)
boolean
equals(java.lang.Object obj)
java.lang.String
getId()
abstract java.time.ZonedDateTime
getNotifyStamp()
Returns the time stamp at which this message is supposed to be sent.abstract com.google.gson.JsonObject
getParams()
Get attributes as JsonObject for Mailer.int
hashCode()
boolean
isValid()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
-
isValid
public boolean isValid()
-
getNotifyStamp
public abstract java.time.ZonedDateTime 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()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-