Package reactor.adapter
Class JdkFlowAdapter
java.lang.Object
reactor.adapter.JdkFlowAdapter
Convert a Java 9+ Flow.Publisher to/from a Reactive Streams
Publisher.- Author:
- Stephane Maldini, Sebastien Deleuze
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Flux<T>flowPublisherToFlux(Flow.Publisher<T> publisher) Return aFluxfrom a javaFlow.Publisherstatic <T> Flow.Publisher<T>publisherToFlowPublisher(Publisher<T> publisher) Return a javaFlow.Publisherfrom aFlux
-
Method Details
-
publisherToFlowPublisher
Return a javaFlow.Publisherfrom aFlux- Type Parameters:
T- the type of the publisher- Parameters:
publisher- the source Publisher to convert- Returns:
- a java
Flow.Publisherfrom the givenPublisher
-
flowPublisherToFlux
Return aFluxfrom a javaFlow.Publisher- Type Parameters:
T- the type of the publisher- Parameters:
publisher- the source Publisher to convert- Returns:
- a
Fluxfrom a javaFlow.Publisher
-