public final class ReactiveStreamsAdapter
extends java.lang.Object
Flow and
reactive-streams.| Modifier and Type | Method | 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(org.reactivestreams.Publisher<T> publisher) |
Return a
Flow.Publisher from a Publisher. |
static <T> org.reactivestreams.Subscriber<T> |
subscriberFromFlow(Flow.Subscriber<T> subscriber) |
Return a
Subscriber from a Flow.Subscriber. |
static <T> Flow.Subscriber<T> |
subscriberToFlow(org.reactivestreams.Subscriber<T> subscriber) |
Return a
Flow.Subscriber from a Subscriber. |
public static <T> Flow.Publisher<T> publisherToFlow(org.reactivestreams.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(org.reactivestreams.Subscriber<T> subscriber)
Flow.Subscriber from a Subscriber.T - the type of the subscribersubscriber - the source Subscriber to convertSubscriberpublic static <T> org.reactivestreams.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 Oracle Corporation. All rights reserved.