Interface Message<T>
- Type Parameters:
T- the type of the message body
public sealed interface Message<T>
Represents a STOMP message with headers and a body.
- Since:
- 1.0.0
-
Method Summary
-
Method Details
-
headers
-
body
Returns the body of the message. If the Message Object has been received, the body has been converted using the configured MessageConverter. If the Message Object is given to the STOMP client for sending, the body will be converted using the configured MessageConverter.
If the body is not present, an empty Optional is returned.
- Returns:
- the body
- Since:
- 1.0.0
-