Class LazyPublisherBuilder<T>
java.lang.Object
io.github.pellse.assembler.microprofile.LazyPublisherBuilder<T>
- 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.TransformingOperators<T>
public final class LazyPublisherBuilder<T>
extends Object
implements org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>
-
Method Summary
Modifier and TypeMethodDescriptionorg.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<Void>
cancel()
<R> org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<R>
collect
(Supplier<R> supplier, BiConsumer<R, ? super T> accumulator) <R,
A> org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<R> distinct()
<S> LazyPublisherBuilder<S>
flatMap
(Function<? super T, ? extends org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends S>> mapper) <S> LazyPublisherBuilder<S>
flatMapCompletionStage
(Function<? super T, ? extends CompletionStage<? extends S>> mapper) <S> LazyPublisherBuilder<S>
flatMapIterable
(Function<? super T, ? extends Iterable<? extends S>> mapper) <S> LazyPublisherBuilder<S>
flatMapRsPublisher
(Function<? super T, ? extends org.reactivestreams.Publisher<? extends S>> mapper) org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<Void>
org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<Void>
ignore()
static <T> LazyPublisherBuilder<T>
lazyPublisherBuilder
(Supplier<org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>> publisherBuilderSupplier) limit
(long maxSize) <R> LazyPublisherBuilder<R>
onComplete
(Runnable action) onErrorResume
(Function<Throwable, ? extends T> errorHandler) onErrorResumeWith
(Function<Throwable, ? extends org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends T>> errorHandler) onErrorResumeWithRsPublisher
(Function<Throwable, ? extends org.reactivestreams.Publisher<? extends T>> errorHandler) onTerminate
(Runnable action) reduce
(BinaryOperator<T> accumulator) org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<T>
reduce
(T identity, BinaryOperator<T> accumulator) skip
(long n) <R> org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<R>
to
(org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? super T, ? extends R> subscriberBuilder) org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<Void>
toList()
<R> LazyPublisherBuilder<R>
via
(org.eclipse.microprofile.reactive.streams.operators.ProcessorBuilder<? super T, ? extends R> processorBuilder) <R> LazyPublisherBuilder<R>
-
Method Details
-
lazyPublisherBuilder
public static <T> LazyPublisherBuilder<T> lazyPublisherBuilder(Supplier<org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>> publisherBuilderSupplier) -
map
-
flatMap
public <S> LazyPublisherBuilder<S> flatMap(Function<? super T, ? extends org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends S>> mapper) -
flatMapRsPublisher
public <S> LazyPublisherBuilder<S> flatMapRsPublisher(Function<? super T, ? extends org.reactivestreams.Publisher<? extends S>> mapper) -
flatMapCompletionStage
public <S> LazyPublisherBuilder<S> flatMapCompletionStage(Function<? super T, ? extends CompletionStage<? extends S>> mapper) -
flatMapIterable
public <S> LazyPublisherBuilder<S> flatMapIterable(Function<? super T, ? extends Iterable<? extends S>> mapper) -
filter
-
distinct
-
limit
-
skip
-
takeWhile
-
dropWhile
-
peek
-
onError
-
onTerminate
-
onComplete
-
forEach
-
ignore
-
cancel
-
reduce
public org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<T> reduce(T identity, BinaryOperator<T> accumulator) -
reduce
public org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<Optional<T>> reduce(BinaryOperator<T> accumulator) -
findFirst
-
collect
-
collect
public <R> org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<R> collect(Supplier<R> supplier, BiConsumer<R, ? super T> accumulator) -
toList
-
onErrorResume
-
onErrorResumeWith
public LazyPublisherBuilder<T> onErrorResumeWith(Function<Throwable, ? extends org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends T>> errorHandler) -
onErrorResumeWithRsPublisher
public LazyPublisherBuilder<T> onErrorResumeWithRsPublisher(Function<Throwable, ? extends org.reactivestreams.Publisher<? extends T>> errorHandler) -
to
-
to
public <R> org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<R> to(org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? super T, ? extends R> subscriberBuilder) -
via
public <R> LazyPublisherBuilder<R> via(org.eclipse.microprofile.reactive.streams.operators.ProcessorBuilder<? super T, ? extends R> processorBuilder) -
via
public <R> LazyPublisherBuilder<R> via(org.reactivestreams.Processor<? super T, ? extends R> processor) -
buildRs
- Specified by:
buildRs
in 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:
buildRs
in interfaceorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>
-