Package org.axonframework.deadline
Interface DeadlineMessage<T>
- Type Parameters:
T- The type of payload contained in this Message; may beVoidif no payload was provided
- All Superinterfaces:
EventMessage<T>,Message<T>,Serializable
- All Known Implementing Classes:
GenericDeadlineMessage
Represents a Message for a Deadline, specified by its deadline name and optionally containing a deadline payload.
Implementations of DeadlineMessage represent a fact (it's a specialization of EventMessage) that some deadline was
reached. The optional payload contains relevant data of the scheduled deadline.
- Since:
- 3.3
- Author:
- Milan Savic, Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptionandMetaData(Map<String, ?> additionalMetaData) Returns a copy of this DeadlineMessage with its MetaData merged with givenadditionalMetaData.Retrieve aStringrepresenting the name of this DeadlineMessage.withMetaData(Map<String, ?> metaData) Returns a copy of this DeadlineMessage with the givenmetaData.Methods inherited from interface org.axonframework.eventhandling.EventMessage
getIdentifier, getTimestampMethods inherited from interface org.axonframework.messaging.Message
getMetaData, getPayload, getPayloadType, serializeMetaData, serializePayload
-
Method Details
-
getDeadlineName
String getDeadlineName()Retrieve aStringrepresenting the name of this DeadlineMessage.- Returns:
- a
Stringrepresenting the name of this DeadlineMessage
-
withMetaData
Returns a copy of this DeadlineMessage with the givenmetaData. The payload remains unchanged.- Specified by:
withMetaDatain interfaceEventMessage<T>- 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 this DeadlineMessage with its MetaData merged with givenadditionalMetaData. The payload remains unchanged.- Specified by:
andMetaDatain interfaceEventMessage<T>- Specified by:
andMetaDatain interfaceMessage<T>- Parameters:
additionalMetaData- The MetaData to merge into the DeadlineMessage- Returns:
- a copy of this message with added additional MetaData
-