SimpleStateDomainEventExchange

class SimpleStateDomainEventExchange<S : Any, T : Any>(val state: ReadOnlyStateAggregate<S>, val message: DomainEvent<T>, val attributes: MutableMap<String, Any> = ConcurrentHashMap()) : StateDomainEventExchange<S, T>

Simple implementation of StateDomainEventExchange.

This class provides a basic implementation of the StateDomainEventExchange interface, combining a read-only state aggregate with a domain event message and managing exchange attributes.

Type Parameters

S

The type of the aggregate state

T

The type of the domain event body

See also

Constructors

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

Creates a new SimpleStateDomainEventExchange with state, 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

Link copied to clipboard
open override val state: ReadOnlyStateAggregate<S>

The read-only state aggregate