Class ReactiveAdapterRegistry

java.lang.Object
org.springframework.core.ReactiveAdapterRegistry

public class ReactiveAdapterRegistry extends Object
A registry of adapters to adapt Reactive Streams Publisher to/from various async/reactive types such as CompletableFuture, RxJava Flowable, etc. This is designed to complement Spring's Reactor Mono/Flux support while also being usable without Reactor, e.g. just for org.reactivestreams bridging.

By default, depending on classpath availability, adapters are registered for Reactor (including CompletableFuture and Flow.Publisher adapters), RxJava 3, Kotlin Coroutines' Deferred (bridged via Reactor) and SmallRye Mutiny 1.x/2.x. If Reactor is not present, a simple Flow.Publisher bridge will be registered.

Since:
5.0
Author:
Rossen Stoyanchev, Sebastien Deleuze, Juergen Hoeller