Class Message

java.lang.Object
io.openems.backend.alerting.Message
All Implemented Interfaces:
Comparable<Message>
Direct Known Subclasses:
OfflineEdgeMessage, SumStateMessage

public abstract class Message extends Object implements Comparable<Message>
Properties for one notification.
  • Constructor Details

    • Message

      protected Message(String id)
  • Method Details

    • getId

      public String getId()
      Returns the unique identifier for a Message.
      Returns:
      identifier as String
    • getNotifyStamp

      public abstract 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 class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(Message o)
      Specified by:
      compareTo in interface Comparable<Message>