DefaultCommandHandler

Default implementation of CommandHandler using a filter chain.

This handler processes commands by passing them through a configured filter chain, with built-in error handling capabilities.

Parameters

chain

The filter chain to process commands through.

errorHandler

The error handler for handling exceptions during command processing. Defaults to LogResumeErrorHandler.

Constructors

Link copied to clipboard
constructor(chain: FilterChain<ServerCommandExchange<*>>, errorHandler: ErrorHandler<ServerCommandExchange<*>> = LogResumeErrorHandler())

Functions

Link copied to clipboard
open override fun handle(context: ServerCommandExchange<*>): Mono<Void>

执行处理逻辑的方法,当发生异常时使用错误处理器进行处理

Link copied to clipboard

Wraps a CommandHandler with metrics collection capabilities. Returns a MetricCommandHandler that collects metrics on command handling operations.