public final class Completables
extends java.lang.Object
CompletableConverters,
use Completable.as(CompletableConverter)
to apply the operators to an existing sequence.CompletableTransformers| Modifier and Type | Method and Description |
|---|---|
static <R> io.reactivex.CompletableConverter<io.reactivex.Flowable<R>> |
flatMapFlowable(java.util.concurrent.Callable<? extends org.reactivestreams.Publisher<? extends R>> onCompleteHandler,
io.reactivex.functions.Function<? super java.lang.Throwable,? extends org.reactivestreams.Publisher<? extends R>> onErrorHandler)
Maps the terminal signals of the upstream into
Publishers and
subscribes to it, relaying its terminal events to the downstream. |
static <R> io.reactivex.CompletableConverter<io.reactivex.Maybe<R>> |
flatMapMaybe(java.util.concurrent.Callable<? extends io.reactivex.MaybeSource<? extends R>> onCompleteHandler,
io.reactivex.functions.Function<? super java.lang.Throwable,? extends io.reactivex.MaybeSource<? extends R>> onErrorHandler)
Maps the terminal signals of the upstream into
MaybeSources and
subscribes to it, relaying its terminal events to the downstream. |
static <R> io.reactivex.CompletableConverter<io.reactivex.Observable<R>> |
flatMapObservable(java.util.concurrent.Callable<? extends io.reactivex.ObservableSource<? extends R>> onCompleteHandler,
io.reactivex.functions.Function<? super java.lang.Throwable,? extends io.reactivex.ObservableSource<? extends R>> onErrorHandler)
Maps the terminal signals of the upstream into
ObservableSources and
subscribes to it, relaying its terminal events to the downstream. |
static <R> io.reactivex.CompletableConverter<io.reactivex.Single<R>> |
flatMapSingle(java.util.concurrent.Callable<? extends io.reactivex.SingleSource<? extends R>> onCompleteHandler,
io.reactivex.functions.Function<? super java.lang.Throwable,? extends io.reactivex.SingleSource<? extends R>> onErrorHandler)
Maps the terminal signals of the upstream into
SingleSources and
subscribes to it, relaying its terminal events to the downstream. |
public static <R> io.reactivex.CompletableConverter<io.reactivex.Maybe<R>> flatMapMaybe(java.util.concurrent.Callable<? extends io.reactivex.MaybeSource<? extends R>> onCompleteHandler,
io.reactivex.functions.Function<? super java.lang.Throwable,? extends io.reactivex.MaybeSource<? extends R>> onErrorHandler)
MaybeSources and
subscribes to it, relaying its terminal events to the downstream.R - the element type of the mapped-in MaybeSourceonCompleteHandler - called when the upstream completes normally and should return
the MaybeSource to continue with.onErrorHandler - called when the upstream fails and should return the
MaybeSource for the given Throwable instance to continue with.public static <R> io.reactivex.CompletableConverter<io.reactivex.Single<R>> flatMapSingle(java.util.concurrent.Callable<? extends io.reactivex.SingleSource<? extends R>> onCompleteHandler,
io.reactivex.functions.Function<? super java.lang.Throwable,? extends io.reactivex.SingleSource<? extends R>> onErrorHandler)
SingleSources and
subscribes to it, relaying its terminal events to the downstream.R - the element type of the mapped-in SingleSourceonCompleteHandler - called when the upstream completes normally and should return
the SingleSource to continue with.onErrorHandler - called when the upstream fails and should return the
SingleSource for the given Throwable instance to continue with.public static <R> io.reactivex.CompletableConverter<io.reactivex.Observable<R>> flatMapObservable(java.util.concurrent.Callable<? extends io.reactivex.ObservableSource<? extends R>> onCompleteHandler,
io.reactivex.functions.Function<? super java.lang.Throwable,? extends io.reactivex.ObservableSource<? extends R>> onErrorHandler)
ObservableSources and
subscribes to it, relaying its terminal events to the downstream.R - the element type of the mapped-in ObservableSourceonCompleteHandler - called when the upstream completes normally and should return
the SingleSource to continue with.onErrorHandler - called when the upstream fails and should return the
ObservableSource for the given Throwable instance to continue with.public static <R> io.reactivex.CompletableConverter<io.reactivex.Flowable<R>> flatMapFlowable(java.util.concurrent.Callable<? extends org.reactivestreams.Publisher<? extends R>> onCompleteHandler,
io.reactivex.functions.Function<? super java.lang.Throwable,? extends org.reactivestreams.Publisher<? extends R>> onErrorHandler)
Publishers and
subscribes to it, relaying its terminal events to the downstream.R - the element type of the mapped-in ObservableSourceonCompleteHandler - called when the upstream completes normally and should return
the Publisher to continue with.onErrorHandler - called when the upstream fails and should return the
Publisher for the given Throwable instance to continue with.