Class OfflineEdgeMessage

java.lang.Object
io.openems.backend.alerting.Message
io.openems.backend.alerting.message.OfflineEdgeMessage
All Implemented Interfaces:
Comparable<Message>

public class OfflineEdgeMessage extends Message
  • Field Details

  • Constructor Details

  • Method Details

    • getNotifyStamp

      public ZonedDateTime getNotifyStamp()
      Description copied from class: Message
      Returns the time stamp at which this message is supposed to be sent.
      Specified by:
      getNotifyStamp in class Message
      Returns:
      ZonedDateTime at which to send this message
    • addRecipient

      public void addRecipient(OfflineEdgeAlertingSetting setting)
      Add a recipient with its delay to the message.
      Parameters:
      setting - of user to whom to send the mail to
    • getCurrentRecipients

      public List<OfflineEdgeAlertingSetting> getCurrentRecipients()
    • getMessageCount

      public int getMessageCount()
    • update

      public boolean update()
      Transform message to use for next cycle.
      Returns:
      next Message with updated Recipients
    • getEdgeId

      public String getEdgeId()
    • isEmpty

      public boolean isEmpty()
    • getParams

      public com.google.gson.JsonObject getParams()
      Description copied from class: Message
      Get attributes as JsonObject for Mailer.
      Specified by:
      getParams in class Message
      Returns:
      JsonObject
    • toString

      public String toString()
      Overrides:
      toString in class Object