Package org.axonframework.messaging
Class Headers
java.lang.Object
org.axonframework.messaging.Headers
Default headers to include when publishing a message on a broker.
- Since:
- 3.0
- Author:
- Nakul Mishra
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey pointing to the aggregate identifier of a message.static final StringKey pointing to the aggregate sequence of a message.static final StringKey pointing to the aggregate type of a message.static final StringKey pointing to the deadline name of aDeadlineMessage.static final StringKey pointing to a message identifier.static final StringKey pointing to theMetaDataof a message.static final StringKey pointing to the revision of a message.static final StringKey pointing to the timestamp of a message.static final StringKey pointing to the payload type of a message.static final StringKey pointing to the serialized payload of a message. -
Method Summary
Modifier and TypeMethodDescriptiondefaultHeaders(EventMessage<?> message, SerializedObject<?> serializedObject) Generate defaults headers to recognise an event message.toString()
-
Field Details
-
MESSAGE_ID
Key pointing to a message identifier.- See Also:
-
SERIALIZED_MESSAGE_PAYLOAD
Key pointing to the serialized payload of a message.- See Also:
-
MESSAGE_TYPE
Key pointing to the payload type of a message.- See Also:
-
MESSAGE_REVISION
Key pointing to the revision of a message.- See Also:
-
MESSAGE_TIMESTAMP
Key pointing to the timestamp of a message.- See Also:
-
AGGREGATE_ID
Key pointing to the aggregate identifier of a message.- See Also:
-
AGGREGATE_SEQ
Key pointing to the aggregate sequence of a message.- See Also:
-
AGGREGATE_TYPE
Key pointing to the aggregate type of a message.- See Also:
-
MESSAGE_METADATA
Key pointing to theMetaDataof a message.- See Also:
-
DEADLINE_NAME
Key pointing to the deadline name of aDeadlineMessage.- See Also:
-
-
Method Details
-
defaultHeaders
public static Map<String,Object> defaultHeaders(EventMessage<?> message, SerializedObject<?> serializedObject) Generate defaults headers to recognise an event message.- Parameters:
message- event message.serializedObject- payload.- Returns:
- headers
-
toString
-