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