ServerCommandExchange

Server-side command exchange interface for commands being processed by the server.

This interface provides access to command processing context, including the aggregate processor, command results, event streams, and error information. It allows processors to store and retrieve data throughout the command handling pipeline.

Type Parameters

C

the type of the command

See also

Inheritors

Functions

Link copied to clipboard
open override fun <T : Any> extractDeclared(type: Class<T>): T?

Extracts an object of the specified type from the exchange context.

Link copied to clipboard
open override fun getAggregateVersion(): Int?
Link copied to clipboard

Gets the result of invoking the command on the aggregate.

Link copied to clipboard
open override fun getError(): Throwable?

Gets the error that occurred during command processing.

Link copied to clipboard

Gets the event stream generated by the command execution.

Link copied to clipboard

Sets the version of the aggregate after command processing.

Link copied to clipboard

Sets the result of invoking the command on the aggregate.

Link copied to clipboard

Sets the event stream generated by the command execution.