| Constructor and Description |
|---|
StringMessage(@NonNull String messageKey)
Default constructor with a message identifier
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static StringMessage |
from(String messageKey)
Static factory method to create a message
with a message key.
|
static StringMessage |
from(String messageKey,
Payload payload)
Static factory method to create a message
with a message key and payload
|
UUID |
getMessageId()
Retrieves the message identifier
|
Payload |
getPayload()
Retrieves the payload contents
of the message.
|
int |
hashCode() |
String |
toString() |
public StringMessage(@NonNull
@NonNull String messageKey)
messageKey - the message identifierpublic static StringMessage from(String messageKey)
messageKey - the message keypublic static StringMessage from(String messageKey, Payload payload)
messageKey - the message keypayload - the payloadpublic UUID getMessageId()
getMessageId in interface Messagepublic Payload getPayload()
MessagegetPayload in interface MessageCopyright © 2019 state-machine. All rights reserved.