Interface ResetContext<T>
- Type Parameters:
T- the type of payload contained in the message
- All Superinterfaces:
Message<T>,Serializable
- All Known Implementing Classes:
GenericResetContext
Represents a Message initiating the reset of an Event Handling Component. A payload of
T can be provided to
support the reset operation handling this message.- Since:
- 4.4
- Author:
- Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptionandMetaData(Map<String, ?> metaData) Returns a copy of thisResetContextwith it MetaData merged with the givenmetaData.withMetaData(Map<String, ?> metaData) Returns a copy of thisResetContextwith the givenmetaData.Methods inherited from interface org.axonframework.messaging.Message
getIdentifier, getMetaData, getPayload, getPayloadType, serializeMetaData, serializePayload
-
Method Details
-
withMetaData
Returns a copy of thisResetContextwith the givenmetaData. The payload remains unchanged. While the implementation returned may be different than the implementation ofthis, implementations must take special care in returning the same type of Message (e.g. EventMessage, DomainEventMessage) to prevent errors further downstream.- Specified by:
withMetaDatain interfaceMessage<T>- Parameters:
metaData- the new MetaData for the Message- Returns:
- a copy of this message with the given MetaData
-
andMetaData
Returns a copy of thisResetContextwith it MetaData merged with the givenmetaData. The payload remains unchanged.- Specified by:
andMetaDatain interfaceMessage<T>- Parameters:
metaData- the MetaData to merge with- Returns:
- a copy of this message with the given MetaData
-