Class MessageId


  • public final class MessageId
    extends Object
    Unique identifier for a messages.
    • Constructor Detail

      • MessageId

        public MessageId()
    • Method Detail

      • fromString

        public static MessageId fromString​(String value)
        Creates a new MessageId using the string representation of an UUID.
        Parameters:
        value - the string representation of the UUID
        Returns:
        a new MessageId
      • newUniqueMessageId

        public static MessageId newUniqueMessageId()
        Creates a new, randomly generated MessageId.
        Returns:
        the new, randomly generated MessageId
      • stringValue

        public String stringValue()
        Returns a String representing the MessageId.
        Returns:
        a representative string