Single<T> |
CompletionSingle.cancel() |
|
default Single<T> |
Single.cancel() |
Cancel upstream.
|
default <U> Single<U> |
Multi.collect(Collector<T,U> collector) |
Collect the items of this Multi instance into a Single.
|
default <U> Single<U> |
Multi.collect(Supplier<? extends U> collectionSupplier,
BiConsumer<U,T> accumulator) |
Collect the items of this Multi into a collection provided via a Supplier
and mutated by a BiConsumer callback.
|
default Single<List<T>> |
Multi.collectList() |
|
default <A,R> Single<R> |
Multi.collectStream(Collector<T,A,R> collector) |
Collects up upstream items with the help of a the callbacks of
a Collector.
|
default <U> Single<U> |
Single.compose(Function<? super Single<T>,? extends Single<? extends U>> composer) |
Apply the given composer function to the current Single instance and
return the Single returned by this function.
|
static <T> Single<T> |
Single.create(Single<T> single) |
Create a Single instance that publishes the first and only item received from the given Single.
|
static <T> Single<T> |
Single.create(CompletionStage<T> completionStage) |
Wrap a CompletionStage into a Multi and signal its outcome non-blockingly.
|
static <T> Single<T> |
Single.create(CompletionStage<T> completionStage,
boolean nullMeansEmpty) |
Wrap a CompletionStage into a Multi and signal its outcome non-blockingly.
|
static <T> Single<T> |
Single.create(Flow.Publisher<T> source) |
Create a Single instance that publishes the first and only item received from the given publisher.
|
default Single<T> |
Single.defaultIfEmpty(T defaultItem) |
Signals the default item if the upstream is empty.
|
static <T> Single<T> |
Single.defer(Supplier<? extends Single<? extends T>> supplier) |
Call the given supplier function for each individual downstream Subscriber
to return a Flow.Publisher to subscribe to.
|
static <T> Single<T> |
Single.empty() |
Get a Single instance that completes immediately.
|
static <T> Single<T> |
Single.error(Throwable error) |
Create a Single instance that reports the given given exception to its subscriber(s).
|
default Single<T> |
Multi.first() |
|
default <U> Single<U> |
Single.flatMapSingle(Function<? super T,? extends Single<? extends U>> mapper) |
|
default Single<Void> |
Multi.forEach(Consumer<? super T> consumer) |
Terminal stage, invokes provided consumer for every item in the stream.
|
static <T> Single<T> |
Single.from(Single<T> single) |
Deprecated.
|
static <T> Single<T> |
Single.from(CompletionStage<T> completionStage) |
Deprecated.
|
static <T> Single<T> |
Single.from(CompletionStage<T> completionStage,
boolean nullMeansEmpty) |
Deprecated.
|
static <T> Single<T> |
Single.from(Flow.Publisher<T> source) |
Deprecated.
|
default Single<Void> |
Multi.ignoreElements() |
Terminal stage, ignore all items and complete returned Single<Void> successfully or exceptionally.
|
static <T> Single<T> |
Single.just(T item) |
Create a Single instance that publishes the given item to its subscriber(s).
|
default <U> Single<U> |
Single.map(Function<? super T,? extends U> mapper) |
|
static <T> Single<T> |
Single.never() |
Get a Single instance that never completes.
|
default Single<T> |
Single.observeOn(Executor executor) |
Re-emit the upstream's signals to the downstream on the given executor's thread.
|
Single<T> |
CompletionSingle.onCancel(Runnable onCancel) |
|
default Single<T> |
Single.onCancel(Runnable onCancel) |
Executes given Runnable when a cancel signal is received.
|
default Single<T> |
Single.onComplete(Runnable onComplete) |
Executes given Runnable when onComplete signal is received.
|
default Single<T> |
Single.onError(Consumer<? super Throwable> onErrorConsumer) |
Executes given Consumer when onError signal is received.
|
default Single<T> |
Single.onErrorResume(Function<? super Throwable,? extends T> onError) |
Function providing one item to be submitted as onNext in case of onError signal is received.
|
default Single<T> |
Single.onErrorResumeWithSingle(Function<? super Throwable,? extends Single<? extends T>> onError) |
Resume stream from supplied publisher if onError signal is intercepted.
|
default Single<T> |
Single.onTerminate(Runnable onTerminate) |
Executes given Runnable when any of signals onComplete, onCancel or onError is received.
|
default Single<T> |
Single.peek(Consumer<? super T> consumer) |
Invoke provided consumer for the item in stream.
|
default Single<T> |
Multi.reduce(BiFunction<T,T,T> reducer) |
Combine subsequent items via a callback function and emit
the final value result as a Single.
|
default <R> Single<R> |
Multi.reduce(Supplier<? extends R> supplier,
BiFunction<R,T,R> reducer) |
Combine every upstream item with an accumulator value to produce a new accumulator
value and emit the final accumulator value as a Single.
|
default Single<T> |
Single.retry(long count) |
Retry a failing upstream at most the given number of times before giving up.
|
default Single<T> |
Single.retry(BiPredicate<? super Throwable,? super Long> predicate) |
Retry a failing upstream if the predicate returns true.
|
default <U> Single<T> |
Single.retryWhen(BiFunction<? super Throwable,? super Long,? extends Flow.Publisher<U>> whenFunction) |
Retry a failing upstream when the given function returns a publisher that
signals an item.
|
default Single<T> |
Single.switchIfEmpty(Single<T> other) |
Switch to the other Single if the upstream is empty.
|
default <U> Single<T> |
Single.takeUntil(Flow.Publisher<U> other) |
Relay upstream items until the other source signals an item or completes.
|
default Single<T> |
Single.timeout(long timeout,
TimeUnit unit,
ScheduledExecutorService executor) |
Signals a TimeoutException if the upstream doesn't signal an item, error
or completion within the specified time.
|
default Single<T> |
Single.timeout(long timeout,
TimeUnit unit,
ScheduledExecutorService executor,
Single<T> fallback) |
Switches to a fallback single if the upstream doesn't signal an item, error
or completion within the specified time.
|
static Single<Long> |
Single.timer(long time,
TimeUnit unit,
ScheduledExecutorService executor) |
Signal 0L and complete the sequence after the given time elapsed.
|
default Single<Optional<T>> |
Single.toOptionalSingle() |
Exposes this Single instance as a Single with Optional<T> return type
of the asynchronous operation.
|