public final class ReactiveStreamsAdapter extends Object
Flow and
reactive-streams.| Modifier and Type | Method and Description |
|---|---|
static <T> reactor.core.publisher.Flux<T> |
publisherFromFlow(Flow.Publisher<T> publisher)
Return a
Publisher from a Flow.Publisher. |
static <T> Flow.Publisher<T> |
publisherToFlow(Publisher<T> publisher)
Return a
Flow.Publisher from a Publisher. |
static <T> Subscriber<T> |
subscriberFromFlow(Flow.Subscriber<T> subscriber)
Return a
Subscriber from a Flow.Subscriber. |
static <T> Flow.Subscriber<T> |
subscriberToFlow(Subscriber<T> subscriber)
Return a
Flow.Subscriber from a Subscriber. |
public static <T> Flow.Publisher<T> publisherToFlow(Publisher<T> publisher)
Flow.Publisher from a Publisher.T - the type of the publisherpublisher - the source Publisher to convertFlow.Publisherpublic static <T> reactor.core.publisher.Flux<T> publisherFromFlow(Flow.Publisher<T> publisher)
Publisher from a Flow.Publisher.T - the type of the publisherpublisher - the source Publisher to convertFluxpublic static <T> Flow.Subscriber<T> subscriberToFlow(Subscriber<T> subscriber)
Flow.Subscriber from a Subscriber.T - the type of the subscribersubscriber - the source Subscriber to convertSubscriberpublic static <T> Subscriber<T> subscriberFromFlow(Flow.Subscriber<T> subscriber)
Subscriber from a Flow.Subscriber.T - the type of the subscribersubscriber - the source Subscriber to convertFlow.SubscriberCopyright © 2018–2019 Oracle Corporation. All rights reserved.