Class Message

    • Constructor Detail

      • Message

        public Message​(Message.Type type)
        Creates a new message.
        Parameters:
        type - message type
    • Method Detail

      • getType

        public Message.Type getType()
        Returns:
        message type
      • getId

        public java.util.UUID getId()
        Returns:
        message id
      • getTimestamp

        public long getTimestamp()
        Returns:
        time in milliseconds
      • setTimestamp

        public void setTimestamp​(long timestamp)
        Parameters:
        timestamp - time in milliseconds
      • getFirehoseVersion

        public java.lang.String getFirehoseVersion()
        Returns:
        version of the Firehose SDK used to handle this message. Required as of version 2.0
      • setFirehoseVersion

        public void setFirehoseVersion​(java.lang.String firehoseVersion)
        Parameters:
        firehoseVersion - version of the Firehose SDK used to handle this message. Required as of version 2.0