Package hu.akarnokd.rxjava3.mprs
Class RxJavaPublisherBuilder<T>
- java.lang.Object
-
- hu.akarnokd.rxjava3.mprs.RxJavaPublisherBuilder<T>
-
- Type Parameters:
T- the element type of the sequence at a specific stage
- All Implemented Interfaces:
org.eclipse.microprofile.reactive.streams.operators.ConnectingOperators<T>,org.eclipse.microprofile.reactive.streams.operators.ConsumingOperators<T>,org.eclipse.microprofile.reactive.streams.operators.ErrorHandlingOperators<T>,org.eclipse.microprofile.reactive.streams.operators.FilteringOperators<T>,org.eclipse.microprofile.reactive.streams.operators.PeekingOperators<T>,org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>,org.eclipse.microprofile.reactive.streams.operators.spi.ToGraphable,org.eclipse.microprofile.reactive.streams.operators.TransformingOperators<T>
public final class RxJavaPublisherBuilder<T> extends java.lang.Object implements org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>, org.eclipse.microprofile.reactive.streams.operators.spi.ToGraphableBuilds a Flowable-based sequence by applying operators one after the other.
-
-
Constructor Summary
Constructors Constructor Description RxJavaPublisherBuilder(Flowable<T> source)Create a builder with the given Flowable as the source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.reactivestreams.Publisher<T>buildRs()org.reactivestreams.Publisher<T>buildRs(org.eclipse.microprofile.reactive.streams.operators.spi.ReactiveStreamsEngine engine)org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.lang.Void>cancel()<R> org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<R>collect(java.util.function.Supplier<R> supplier, java.util.function.BiConsumer<R,? super T> accumulator)<R,A>
org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<R>collect(java.util.stream.Collector<? super T,A,R> collector)org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>distinct()org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>dropWhile(java.util.function.Predicate<? super T> predicate)org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>filter(java.util.function.Predicate<? super T> predicate)org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.util.Optional<T>>findFirst()<S> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<S>flatMap(java.util.function.Function<? super T,? extends org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends S>> mapper)<S> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<S>flatMapCompletionStage(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<? extends S>> mapper)<S> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<S>flatMapIterable(java.util.function.Function<? super T,? extends java.lang.Iterable<? extends S>> mapper)<S> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<S>flatMapRsPublisher(java.util.function.Function<? super T,? extends org.reactivestreams.Publisher<? extends S>> mapper)org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.lang.Void>forEach(java.util.function.Consumer<? super T> action)org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.lang.Void>ignore()org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>limit(long maxSize)<R> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<R>map(java.util.function.Function<? super T,? extends R> mapper)org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>onComplete(java.lang.Runnable action)org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>onError(java.util.function.Consumer<java.lang.Throwable> errorHandler)org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>onErrorResume(java.util.function.Function<java.lang.Throwable,? extends T> errorHandler)org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>onErrorResumeWith(java.util.function.Function<java.lang.Throwable,? extends org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends T>> errorHandler)org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>onErrorResumeWithRsPublisher(java.util.function.Function<java.lang.Throwable,? extends org.reactivestreams.Publisher<? extends T>> errorHandler)org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>onTerminate(java.lang.Runnable action)org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>peek(java.util.function.Consumer<? super T> consumer)org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.util.Optional<T>>reduce(java.util.function.BinaryOperator<T> accumulator)org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<T>reduce(T identity, java.util.function.BinaryOperator<T> accumulator)org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>skip(long n)org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>takeWhile(java.util.function.Predicate<? super T> predicate)<R> org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<R>to(org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? super T,? extends R> subscriber)org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.lang.Void>to(org.reactivestreams.Subscriber<? super T> subscriber)org.eclipse.microprofile.reactive.streams.operators.spi.GraphtoGraph()org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.util.List<T>>toList()<R> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<R>via(org.eclipse.microprofile.reactive.streams.operators.ProcessorBuilder<? super T,? extends R> processor)<R> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<R>via(org.reactivestreams.Processor<? super T,? extends R> processor)
-
-
-
Method Detail
-
map
public <R> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<R> map(java.util.function.Function<? super T,? extends R> mapper)
-
flatMap
public <S> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<S> flatMap(java.util.function.Function<? super T,? extends org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends S>> mapper)
-
flatMapRsPublisher
public <S> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<S> flatMapRsPublisher(java.util.function.Function<? super T,? extends org.reactivestreams.Publisher<? extends S>> mapper)
-
flatMapCompletionStage
public <S> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<S> flatMapCompletionStage(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<? extends S>> mapper)
-
flatMapIterable
public <S> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<S> flatMapIterable(java.util.function.Function<? super T,? extends java.lang.Iterable<? extends S>> mapper)
-
filter
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> filter(java.util.function.Predicate<? super T> predicate)
-
distinct
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> distinct()
-
limit
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> limit(long maxSize)
-
skip
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> skip(long n)
-
takeWhile
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> takeWhile(java.util.function.Predicate<? super T> predicate)
-
dropWhile
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> dropWhile(java.util.function.Predicate<? super T> predicate)
-
peek
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> peek(java.util.function.Consumer<? super T> consumer)
-
onError
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> onError(java.util.function.Consumer<java.lang.Throwable> errorHandler)
-
onTerminate
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> onTerminate(java.lang.Runnable action)
-
onComplete
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> onComplete(java.lang.Runnable action)
-
forEach
public org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.lang.Void> forEach(java.util.function.Consumer<? super T> action)
-
ignore
public org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.lang.Void> ignore()
-
cancel
public org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.lang.Void> cancel()
-
reduce
public org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<T> reduce(T identity, java.util.function.BinaryOperator<T> accumulator)
-
reduce
public org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.util.Optional<T>> reduce(java.util.function.BinaryOperator<T> accumulator)
-
findFirst
public org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.util.Optional<T>> findFirst()
-
collect
public <R,A> org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<R> collect(java.util.stream.Collector<? super T,A,R> collector)
-
collect
public <R> org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<R> collect(java.util.function.Supplier<R> supplier, java.util.function.BiConsumer<R,? super T> accumulator)
-
toList
public org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.util.List<T>> toList()
-
onErrorResume
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> onErrorResume(java.util.function.Function<java.lang.Throwable,? extends T> errorHandler)
-
onErrorResumeWith
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> onErrorResumeWith(java.util.function.Function<java.lang.Throwable,? extends org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends T>> errorHandler)
-
onErrorResumeWithRsPublisher
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> onErrorResumeWithRsPublisher(java.util.function.Function<java.lang.Throwable,? extends org.reactivestreams.Publisher<? extends T>> errorHandler)
-
to
public org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.lang.Void> to(org.reactivestreams.Subscriber<? super T> subscriber)
-
to
public <R> org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<R> to(org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? super T,? extends R> subscriber)
-
via
public <R> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<R> via(org.eclipse.microprofile.reactive.streams.operators.ProcessorBuilder<? super T,? extends R> processor)
-
via
public <R> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<R> via(org.reactivestreams.Processor<? super T,? extends R> processor)
-
buildRs
public org.reactivestreams.Publisher<T> buildRs()
- Specified by:
buildRsin interfaceorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>
-
buildRs
public org.reactivestreams.Publisher<T> buildRs(org.eclipse.microprofile.reactive.streams.operators.spi.ReactiveStreamsEngine engine)
- Specified by:
buildRsin interfaceorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>
-
toGraph
public org.eclipse.microprofile.reactive.streams.operators.spi.Graph toGraph()
- Specified by:
toGraphin interfaceorg.eclipse.microprofile.reactive.streams.operators.spi.ToGraphable
-
-