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 java.lang.Object implements org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>
-
-
Method Summary
All Methods Static 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)
LazyPublisherBuilder<T>
distinct()
LazyPublisherBuilder<T>
dropWhile(java.util.function.Predicate<? super T> predicate)
LazyPublisherBuilder<T>
filter(java.util.function.Predicate<? super T> predicate)
org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.util.Optional<T>>
findFirst()
<S> LazyPublisherBuilder<S>
flatMap(java.util.function.Function<? super T,? extends org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends S>> mapper)
<S> LazyPublisherBuilder<S>
flatMapCompletionStage(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<? extends S>> mapper)
<S> LazyPublisherBuilder<S>
flatMapIterable(java.util.function.Function<? super T,? extends java.lang.Iterable<? extends S>> mapper)
<S> LazyPublisherBuilder<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()
static <T> LazyPublisherBuilder<T>
lazyPublisherBuilder(java.util.function.Supplier<org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>> publisherBuilderSupplier)
LazyPublisherBuilder<T>
limit(long maxSize)
<R> LazyPublisherBuilder<R>
map(java.util.function.Function<? super T,? extends R> mapper)
LazyPublisherBuilder<T>
onComplete(java.lang.Runnable action)
LazyPublisherBuilder<T>
onError(java.util.function.Consumer<java.lang.Throwable> errorHandler)
LazyPublisherBuilder<T>
onErrorResume(java.util.function.Function<java.lang.Throwable,? extends T> errorHandler)
LazyPublisherBuilder<T>
onErrorResumeWith(java.util.function.Function<java.lang.Throwable,? extends org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends T>> errorHandler)
LazyPublisherBuilder<T>
onErrorResumeWithRsPublisher(java.util.function.Function<java.lang.Throwable,? extends org.reactivestreams.Publisher<? extends T>> errorHandler)
LazyPublisherBuilder<T>
onTerminate(java.lang.Runnable action)
LazyPublisherBuilder<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)
LazyPublisherBuilder<T>
skip(long n)
LazyPublisherBuilder<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> subscriberBuilder)
org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.lang.Void>
to(org.reactivestreams.Subscriber<? super T> subscriber)
org.eclipse.microprofile.reactive.streams.operators.CompletionRunner<java.util.List<T>>
toList()
<R> LazyPublisherBuilder<R>
via(org.eclipse.microprofile.reactive.streams.operators.ProcessorBuilder<? super T,? extends R> processorBuilder)
<R> LazyPublisherBuilder<R>
via(org.reactivestreams.Processor<? super T,? extends R> processor)
-
-
-
Method Detail
-
lazyPublisherBuilder
public static <T> LazyPublisherBuilder<T> lazyPublisherBuilder(java.util.function.Supplier<org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>> publisherBuilderSupplier)
-
map
public <R> LazyPublisherBuilder<R> map(java.util.function.Function<? super T,? extends R> mapper)
-
flatMap
public <S> LazyPublisherBuilder<S> flatMap(java.util.function.Function<? super T,? extends org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends S>> mapper)
-
flatMapRsPublisher
public <S> LazyPublisherBuilder<S> flatMapRsPublisher(java.util.function.Function<? super T,? extends org.reactivestreams.Publisher<? extends S>> mapper)
-
flatMapCompletionStage
public <S> LazyPublisherBuilder<S> flatMapCompletionStage(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<? extends S>> mapper)
-
flatMapIterable
public <S> LazyPublisherBuilder<S> flatMapIterable(java.util.function.Function<? super T,? extends java.lang.Iterable<? extends S>> mapper)
-
filter
public LazyPublisherBuilder<T> filter(java.util.function.Predicate<? super T> predicate)
-
distinct
public LazyPublisherBuilder<T> distinct()
-
limit
public LazyPublisherBuilder<T> limit(long maxSize)
-
skip
public LazyPublisherBuilder<T> skip(long n)
-
takeWhile
public LazyPublisherBuilder<T> takeWhile(java.util.function.Predicate<? super T> predicate)
-
dropWhile
public LazyPublisherBuilder<T> dropWhile(java.util.function.Predicate<? super T> predicate)
-
peek
public LazyPublisherBuilder<T> peek(java.util.function.Consumer<? super T> consumer)
-
onError
public LazyPublisherBuilder<T> onError(java.util.function.Consumer<java.lang.Throwable> errorHandler)
-
onTerminate
public LazyPublisherBuilder<T> onTerminate(java.lang.Runnable action)
-
onComplete
public LazyPublisherBuilder<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 LazyPublisherBuilder<T> onErrorResume(java.util.function.Function<java.lang.Throwable,? extends T> errorHandler)
-
onErrorResumeWith
public LazyPublisherBuilder<T> onErrorResumeWith(java.util.function.Function<java.lang.Throwable,? extends org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends T>> errorHandler)
-
onErrorResumeWithRsPublisher
public LazyPublisherBuilder<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> 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
public org.reactivestreams.Publisher<T> buildRs()
- Specified by:
buildRs
in interfaceorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>
-
-