MonoMethodAccessorFactory

Creates the MonoFunctionAccessor of a message function: one accessor type for every return shape, adapting the result with the ResultAdapter chosen for the function's declaration.

Functions

Link copied to clipboard
fun <T, D : Any> create(function: KFunction<*>): MonoFunctionAccessor<T, Mono<D>>

Creates the accessor of function: a suspend function, or one returning Flow, Mono, Flux, another Publisher or a plain value, each adapted to a Mono; a function annotated with @Blocking is moved off non-blocking threads.