Class Message

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Message.Type
      Message types.
    • Constructor Summary

      Constructors 
      Constructor Description
      Message​(Message.Type type)
      Creates a new message.
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getFirehoseVersion()  
      java.util.UUID getId()  
      long getTimestamp()  
      Message.Type getType()  
      void setFirehoseVersion​(java.lang.String firehoseVersion)  
      void setTimestamp​(long timestamp)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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