Class MessageId

    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • byteArrayValue

        public byte[] byteArrayValue()
      • longValue

        public long longValue()
      • randomMessageId

        public static MessageId randomMessageId()
        Static factory to retrieve a randomly generated MessageId.
        Returns:
        A randomly generated MessageId
      • isValidMessageId

        public static boolean isValidMessageId​(byte[] id)
        Checks if id is a valid identifier.
        Parameters:
        id - string to be validated
        Returns:
        true if valid. Otherwise false
      • of

        public static MessageId of​(long id)