Package org.springframework.messaging
Interface Message<T>
- Type Parameters:
T
- the payload type
- All Known Implementing Classes:
ErrorMessage
,GenericMessage
public interface Message<T>
A generic message representation with headers and body.
- Since:
- 4.0
- Author:
- Mark Fisher, Arjen Poutsma
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturn message headers for the message (nevernull
but may be empty).Return the message payload.
-
Method Details
-
getPayload
T getPayload()Return the message payload. -
getHeaders
MessageHeaders getHeaders()Return message headers for the message (nevernull
but may be empty).
-