public abstract class RxReactiveStreams
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> rx.Observable<T> |
toObservable(org.reactivestreams.Publisher<T> publisher)
Convert a Reactive Streams
Publisher into a Rx Observable. |
static <T> org.reactivestreams.Publisher<T> |
toPublisher(rx.Observable<T> observable)
Convert a Rx
Observable into a Reactive Streams Publisher. |
static <T> org.reactivestreams.Subscriber<T> |
toSubscriber(rx.Subscriber<T> rxSubscriber)
Convert an RxJava
Subscriber into a Reactive Streams Subscriber. |
public static <T> org.reactivestreams.Publisher<T> toPublisher(rx.Observable<T> observable)
Observable into a Reactive Streams Publisher.
Use this method when you have an RxJava observable, that you want to be consumed by another library.observable - the Observable to convertPublisherpublic static <T> rx.Observable<T> toObservable(org.reactivestreams.Publisher<T> publisher)
Publisher into a Rx Observable.
Use this method when you have a stream from another library, that you want to be consume as an RxJava observable.publisher - the Publisher to convert.Observablepublic static <T> org.reactivestreams.Subscriber<T> toSubscriber(rx.Subscriber<T> rxSubscriber)
Subscriber into a Reactive Streams Subscriber.rxSubscriber - an RxJava subscriber