ClientCommandExchange

Client-side command exchange interface for commands sent from clients.

This interface represents the exchange context for commands initiated by clients, including the wait strategy that determines how the client should wait for results.

Parameters

C

the type of the command

See also

Inheritors

Properties

Link copied to clipboard
Link copied to clipboard
abstract val message: CommandMessage<C>
Link copied to clipboard

the strategy defining how to wait for command processing results

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): ClientCommandExchange<C>
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