public class DefaultEventMessageConverter extends Object implements EventMessageConverter
EventMessageConverter
that will convert an Axon event message into a Spring message by:
DomainEventMessage
specific propertiesConstructor and Description |
---|
DefaultEventMessageConverter() |
Modifier and Type | Method and Description |
---|---|
<T> EventMessage<T> |
convertFromInboundMessage(org.springframework.messaging.Message<T> message)
Converts a Spring inbound
message into an Axon event Message |
<T> org.springframework.messaging.Message<T> |
convertToOutboundMessage(EventMessage<T> event)
Converts Axon
event into Spring message. |
public <T> org.springframework.messaging.Message<T> convertToOutboundMessage(EventMessage<T> event)
EventMessageConverter
event
into Spring message.convertToOutboundMessage
in interface EventMessageConverter
T
- The event payload typeevent
- The Axon event to convertpublic <T> EventMessage<T> convertFromInboundMessage(org.springframework.messaging.Message<T> message)
EventMessageConverter
message
into an Axon event MessageconvertFromInboundMessage
in interface EventMessageConverter
T
- The message payload typemessage
- The Spring message to convertCopyright © 2010–2022. All rights reserved.