SimpleDomainEventExchange

class SimpleDomainEventExchange<T : Any>(val message: DomainEvent<T>, val attributes: MutableMap<String, Any> = ConcurrentHashMap()) : DomainEventExchange<T>

Simple implementation of DomainEventExchange.

This class provides a basic implementation of the DomainEventExchange interface, storing the domain event message and managing exchange attributes in a concurrent map.

Type Parameters

T

The type of the domain event body

See also

Constructors

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

Creates a new SimpleDomainEventExchange with the given message and attributes

Properties

Link copied to clipboard
open override val attributes: MutableMap<String, Any>

Mutable map for storing exchange attributes (default: empty ConcurrentHashMap)

Link copied to clipboard
open override val message: DomainEvent<T>

The domain event being processed