SimpleDomainEventExchange

constructor(message: DomainEvent<T>, attributes: MutableMap<String, Any> = ConcurrentHashMap())

Creates a new SimpleDomainEventExchange with the given message and attributes

Parameters

T

The type of the domain event body

message

The domain event message

attributes

The mutable map of attributes (default: ConcurrentHashMap)