public class StringMessage extends Message<java.lang.String>
Thus to transmit data, an application must break the data into one or more packets, wrap each packet as a message, and then send the message on a channel. Likewise, a receiver application receives a message and must extract the data from the message to process it.
The message system will try repeatedly to deliver the message (e.g., transmit it from the sender to the receiver) until it succeeds.
| Modifier and Type | Method and Description |
|---|---|
static StringMessage |
stringMessage(java.lang.String key,
Header header,
java.lang.String payload) |
static StringMessage |
stringMessage(java.lang.String key,
java.lang.String payload) |
public static StringMessage stringMessage(@Nonnull java.lang.String key, @Nullable java.lang.String payload)
public static StringMessage stringMessage(@Nonnull java.lang.String key, @Nonnull Header header, @Nullable java.lang.String payload)