ExpectedResult
data class ExpectedResult<T : Any>(val exchange: DomainEventExchange<*>, val processor: T, val commandStream: CommandStream?, val error: Throwable? = null) : StatelessSagaExpecter<T, ExpectedResult<T>>
Represents the expected result of a stateless saga processing operation.
This data class encapsulates the outcome of processing a domain event through a stateless saga, including the event exchange, processor, generated commands, and any errors that occurred.
Type Parameters
T
The type of the saga processor.
Constructors
Link copied to clipboard
constructor(exchange: DomainEventExchange<*>, processor: T, commandStream: CommandStream?, error: Throwable? = null)