Package de.otto.synapse.message
Class Message<P>
java.lang.Object
de.otto.synapse.message.Message<P>
- Type Parameters:
P- The type of the Message payload
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TextMessage
A Message is an atomic packet of data that can be transmitted on a channel.
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.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <P> Message.Builder<P>static <P> Message.Builder<P>booleangetKey()inthashCode()static <P> Message<P>static <P> Message<P>static <P> Message<P>static <P> Message<P>toString()