Class CorrelationId

    • Constructor Detail

      • CorrelationId

        public CorrelationId()
    • Method Detail

      • fromString

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

        public static CorrelationId correlationIdFor​(MessageId messageId)
        Creates a CorrelationId matching the given MessageId.
        Parameters:
        messageId - the MessageId to match
        Returns:
        a new CorrelationId
      • newUniqueCorrelationId

        public static CorrelationId newUniqueCorrelationId()
        Creates a new, randomly generated CorrelationId.
        Returns:
        the new, randomly generated CorrelationId
      • matches

        public boolean matches​(MessageId messageId)
        Checks, if the CorrelationId is related to the given MessageId.
        Parameters:
        messageId - the MessageId to check
        Returns:
        true if the ids are related, false otherwise
      • stringValue

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