Class ObservableHelper

    • Constructor Detail

      • ObservableHelper

        public ObservableHelper()
    • Method Detail

      • toReadStream

        public static <T> ReadStream<T> toReadStream​(io.reactivex.rxjava3.core.Observable<T> observable)
        Adapts an RxJava Observable to a Vert.x ReadStream. The returned readstream will be subscribed to the Observable.

        Parameters:
        observable - the observable to adapt
        Returns:
        the adapted stream
      • toObservable

        public static <T> io.reactivex.rxjava3.core.Observable<T> toObservable​(ReadStream<T> stream)
        Adapts a Vert.x to an RxJava . After the stream is adapted to an observable, the original stream handlers should not be used anymore as they will be used by the observable adapter.

        Parameters:
        stream - the stream to adapt
        Returns:
        the adapted observable
      • unmarshaller

        public static <T> io.reactivex.rxjava3.core.ObservableTransformer<Buffer,​T> unmarshaller​(Class<T> mappedType)
      • unmarshaller

        public static <T> io.reactivex.rxjava3.core.ObservableTransformer<Buffer,​T> unmarshaller​(com.fasterxml.jackson.core.type.TypeReference<T> mappedTypeRef)
      • unmarshaller

        public static <T> io.reactivex.rxjava3.core.ObservableTransformer<Buffer,​T> unmarshaller​(Class<T> mappedType,
                                                                                                       com.fasterxml.jackson.core.ObjectCodec mapper)
      • unmarshaller

        public static <T> io.reactivex.rxjava3.core.ObservableTransformer<Buffer,​T> unmarshaller​(com.fasterxml.jackson.core.type.TypeReference<T> mappedTypeRef,
                                                                                                       com.fasterxml.jackson.core.ObjectCodec mapper)