SimpleEventStreamExchange

class SimpleEventStreamExchange(val message: DomainEventStream, val attributes: MutableMap<String, Any> = ConcurrentHashMap()) : EventStreamExchange

Simple implementation of EventStreamExchange.

This class provides a basic implementation of the EventStreamExchange interface, storing the domain event stream message and managing exchange attributes.

Parameters

message

The domain event stream message

attributes

The mutable map of attributes (default: ConcurrentHashMap)

See also

Constructors

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

Creates a new SimpleEventStreamExchange 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: DomainEventStream

The domain event stream being processed

Functions

Link copied to clipboard
open fun acknowledge(): Mono<Void>
Link copied to clipboard
open override fun clearError()

Clears the current error object.

Link copied to clipboard
open fun <T : Any> extractDeclared(type: Class<T>): T?
Link copied to clipboard
open fun <T : Any> extractObject(type: KType): T?
Link copied to clipboard
Link copied to clipboard
open fun <T> getAttribute(key: String): T?
Link copied to clipboard
open override fun getCommandResult(): Map<String, Any>
open override fun <R> getCommandResult(key: String): R?
Link copied to clipboard
open override fun getError(): Throwable?

Gets the current error object.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setAttribute(key: String, value: Any): EventStreamExchange
Link copied to clipboard
open override fun setCommandResult(key: String, value: Any)
Link copied to clipboard
open override fun setError(throwable: Throwable)

Sets the error object for this context.

Link copied to clipboard
Link copied to clipboard