Class OfflineEdgeMessage

  • All Implemented Interfaces:
    java.lang.Comparable<Message>

    public class OfflineEdgeMessage
    extends Message
    • Constructor Detail

      • OfflineEdgeMessage

        public OfflineEdgeMessage​(java.lang.String edgeId,
                                  java.time.ZonedDateTime offlineAt)
    • Method Detail

      • getNotifyStamp

        public java.time.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​(AlertingSetting setting)
        Add a recipient with its delay to the message.
        Parameters:
        setting - of user to whom to send the mail to
      • getCurrentRecipients

        public java.util.List<AlertingSetting> getCurrentRecipients()
      • getMessageCount

        public int getMessageCount()
      • update

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

        public java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object