BlockingMonoFunctionAccessor
class BlockingMonoFunctionAccessor<T, D>(monoFunctionAccessor: MonoFunctionAccessor<T, Mono<D>>, scheduler: Scheduler = Schedulers.boundedElastic()) : MonoFunctionAccessor<T, Mono<D>>
MonoFunctionAccessor wrapper that handles blocking operations by scheduling them on a separate thread. This accessor is used for functions annotated with @Blocking to ensure they don't block the reactive event loop. It automatically switches to a bounded elastic scheduler when running on a non-blocking thread.
Parameters
T
the type of the target object
D
the type of data in the Mono
Constructors
Link copied to clipboard
constructor(monoFunctionAccessor: MonoFunctionAccessor<T, Mono<D>>, scheduler: Scheduler = Schedulers.boundedElastic())