public class RxReactiveStreams
extends java.lang.Object
RxReactiveStreams
helper class provides static utility methods to convert to and from
Observable
s and Publisher
s.Constructor and Description |
---|
RxReactiveStreams() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
subscribe(rx.Observable<T> observable,
org.reactivestreams.Subscriber<? super T> subscriber)
Subscribe to the given Rx
Observable with a Reactive Streams Subscriber . |
static <T> void |
subscribe(org.reactivestreams.Publisher<T> publisher,
rx.Subscriber<? super T> subscriber)
Subscribe to the given
Publisher with a Rx Subscriber . |
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 . |
public static <T> org.reactivestreams.Publisher<T> toPublisher(rx.Observable<T> observable)
Observable
into a Reactive Streams Publisher
.observable
- the Observable
to convert.Publisher
.public static <T> rx.Observable<T> toObservable(org.reactivestreams.Publisher<T> publisher)
Publisher
into a Rx Observable
.publisher
- the Publisher
to convert.Observable
.public static <T> void subscribe(rx.Observable<T> observable, org.reactivestreams.Subscriber<? super T> subscriber)
Observable
with a Reactive Streams Subscriber
.observable
- the Observable
to subscribe to.subscriber
- the Subscriber
which subscribes.public static <T> void subscribe(org.reactivestreams.Publisher<T> publisher, rx.Subscriber<? super T> subscriber)
Publisher
with a Rx Subscriber
.publisher
- the Publisher
to subscribe to.subscriber
- the Subscriber
which subscribes.