Class FlowableHelper
java.lang.Object
io.vertx.rxjava3.FlowableHelper
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> FlowableSubscriber<T> static <T> Flowable<T> toFlowable(ReadStream<T> stream) Adapts a Vert.xReadStream<T>to an RxJavaFlowable<T>.static <T> Flowable<T> toFlowable(ReadStream<T> stream, long maxBufferSize) Adapts a Vert.xReadStream<T>to an RxJavaFlowable<T>.static <T,U> Flowable <U> toFlowable(ReadStream<T> stream, Function<T, U> mapping) LiketoFlowable(ReadStream)but with amappingfunctionstatic <T> Flowable<T> toFlowable(Supplier<Future<ReadStream<T>>> supplier) Adapts a Vert.xReadStream<T>to an RxJavaFlowable<T>.static <T> ReadStream<T> toReadStream(Flowable<T> observable) Adapts an RxJavaFlowable<T>to a Vert.xReadStream<T>.static <T> FlowableTransformer<Buffer, T> unmarshaller(TypeReference<T> mappedTypeRef) static <T> FlowableTransformer<Buffer, T> unmarshaller(TypeReference<T> mappedTypeRef, ObjectCodec mapper) static <T> FlowableTransformer<Buffer, T> unmarshaller(Class<T> mappedType) static <T> FlowableTransformer<Buffer, T> unmarshaller(Class<T> mappedType, ObjectCodec mapper)
-
Constructor Details
-
FlowableHelper
public FlowableHelper()
-
-
Method Details
-
nullObserver
- Returns:
- a
FlowableSubscriberthat does nothing
-
toReadStream
Adapts an RxJavaFlowable<T>to a Vert.xReadStream<T>. The returned readstream will be subscribed to theFlowable<T>.- Parameters:
observable- the observable to adapt- Returns:
- the adapted stream
-
toFlowable
LiketoFlowable(ReadStream)but with amappingfunction -
toFlowable
Adapts a Vert.xReadStream<T>to an RxJavaFlowable<T>. 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.- Parameters:
stream- the stream to adapt- Returns:
- the adapted observable
-
toFlowable
Adapts a Vert.xReadStream<T>to an RxJavaFlowable<T>. 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.- Parameters:
stream- the stream to adapt- Returns:
- the adapted observable
-
toFlowable
Adapts a Vert.xReadStream<T>to an RxJavaFlowable<T>. 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.- Parameters:
supplier- the supplier of future of stream- Returns:
- the adapted observable
-
unmarshaller
-
unmarshaller
-
unmarshaller
public static <T> FlowableTransformer<Buffer,T> unmarshaller(Class<T> mappedType, ObjectCodec mapper) -
unmarshaller
public static <T> FlowableTransformer<Buffer,T> unmarshaller(TypeReference<T> mappedTypeRef, ObjectCodec mapper)
-