Class 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Message

        public Message​(java.lang.String messageId)
    • 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(Message o)
        Specified by:
        compareTo in interface java.lang.Comparable<Message>