public class FlowableHelper extends Object
Constructor and Description |
---|
FlowableHelper() |
Modifier and Type | Method and Description |
---|---|
static <T> io.reactivex.Flowable<T> |
toFlowable(ReadStream<T> stream)
Adapts a Vert.x
ReadStream to an RxJava Flowable . |
static <T,U> io.reactivex.Flowable<U> |
toFlowable(ReadStream<T> stream,
Function<T,U> mapping)
Like
toFlowable(ReadStream) but with a mapping function |
static <T> io.reactivex.Flowable<T> |
toFlowable(ReadStream<T> stream,
long maxBufferSize)
Adapts a Vert.x
ReadStream to an RxJava Flowable . |
static <T> ReadStream<T> |
toReadStream(io.reactivex.Flowable<T> observable)
Adapts an RxJava
Flowable to a Vert.x ReadStream<T> . |
static <T> io.reactivex.FlowableTransformer<Buffer,T> |
unmarshaller(Class<T> mappedType) |
static <T> io.reactivex.FlowableTransformer<Buffer,T> |
unmarshaller(Class<T> mappedType,
com.fasterxml.jackson.databind.ObjectMapper mapper) |
static <T> io.reactivex.FlowableTransformer<Buffer,T> |
unmarshaller(com.fasterxml.jackson.core.type.TypeReference<T> mappedTypeRef) |
static <T> io.reactivex.FlowableTransformer<Buffer,T> |
unmarshaller(com.fasterxml.jackson.core.type.TypeReference<T> mappedTypeRef,
com.fasterxml.jackson.databind.ObjectMapper mapper) |
public static <T> ReadStream<T> toReadStream(io.reactivex.Flowable<T> observable)
Flowable
to a Vert.x ReadStream<T>
. The returned
readstream will be subscribed to the Flowable
.observable
- the observable to adaptpublic static <T,U> io.reactivex.Flowable<U> toFlowable(ReadStream<T> stream, Function<T,U> mapping)
toFlowable(ReadStream)
but with a mapping
functionpublic static <T> io.reactivex.Flowable<T> toFlowable(ReadStream<T> stream)
ReadStream
to an RxJava Flowable
. After
the stream is adapted to a flowable, the original stream handlers should not be used anymore
as they will be used by the flowable adapter.stream
- the stream to adaptpublic static <T> io.reactivex.Flowable<T> toFlowable(ReadStream<T> stream, long maxBufferSize)
ReadStream
to an RxJava Flowable
. After
the stream is adapted to a flowable, the original stream handlers should not be used anymore
as they will be used by the flowable adapter.stream
- the stream to adaptpublic static <T> io.reactivex.FlowableTransformer<Buffer,T> unmarshaller(Class<T> mappedType)
public static <T> io.reactivex.FlowableTransformer<Buffer,T> unmarshaller(com.fasterxml.jackson.core.type.TypeReference<T> mappedTypeRef)
public static <T> io.reactivex.FlowableTransformer<Buffer,T> unmarshaller(Class<T> mappedType, com.fasterxml.jackson.databind.ObjectMapper mapper)
public static <T> io.reactivex.FlowableTransformer<Buffer,T> unmarshaller(com.fasterxml.jackson.core.type.TypeReference<T> mappedTypeRef, com.fasterxml.jackson.databind.ObjectMapper mapper)
Copyright © 2018 Eclipse. All rights reserved.