Class MessageId
- java.lang.Object
-
- de.quantummaid.eventmaid.identification.MessageId
-
public final class MessageId extends Object
Unique identifier for a messages.
-
-
Constructor Summary
Constructors Constructor Description MessageId()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageIdfromString(String value)Creates a newMessageIdusing the string representation of anUUID.static MessageIdnewUniqueMessageId()Creates a new, randomly generatedMessageId.StringstringValue()Returns a String representing theMessageId.
-
-
-
Method Detail
-
fromString
public static MessageId fromString(String value)
Creates a newMessageIdusing the string representation of anUUID.- Parameters:
value- the string representation of theUUID- Returns:
- a new
MessageId
-
newUniqueMessageId
public static MessageId newUniqueMessageId()
Creates a new, randomly generatedMessageId.- Returns:
- the new, randomly generated
MessageId
-
stringValue
public String stringValue()
Returns a String representing theMessageId.- Returns:
- a representative string
-
-