Package | Description |
---|---|
io.reactivex |
Base reactive classes:
Flowable , Observable ,
Single , Maybe and
Completable ; base reactive consumers;
other common base interfaces. |
io.reactivex.internal.fuseable |
Base interfaces and types for supporting operator-fusion.
|
io.reactivex.internal.operators.completable | |
io.reactivex.internal.operators.flowable | |
io.reactivex.internal.operators.maybe | |
io.reactivex.internal.operators.mixed | |
io.reactivex.internal.operators.observable | |
io.reactivex.internal.operators.single | |
io.reactivex.observables |
Classes supporting the Observable base reactive class:
ConnectableObservable and
GroupedObservable . |
io.reactivex.plugins |
Contains the central plugin handler
RxJavaPlugins
class to hook into the lifecycle of the base reactive types and schedulers. |
io.reactivex.subjects |
Classes representing so-called hot sources, aka subjects, that implement a base reactive class and
the respective consumer type at once to allow forms of multicasting events to multiple
consumers as well as consuming another base reactive type of their kind.
|
Modifier and Type | Method and Description |
---|---|
static <T> Observable<T> |
Observable.amb(Iterable<? extends ObservableSource<? extends T>> sources)
Mirrors the one ObservableSource in an Iterable of several ObservableSources that first either emits an item or sends
a termination notification.
|
static <T> Observable<T> |
Observable.ambArray(ObservableSource<? extends T>... sources)
Mirrors the one ObservableSource in an array of several ObservableSources that first either emits an item or sends
a termination notification.
|
Observable<T> |
Observable.ambWith(ObservableSource<? extends T> other)
Mirrors the ObservableSource (current or provided) that first either emits an item or sends a termination
notification.
|
<T> Observable<T> |
Completable.andThen(ObservableSource<T> next)
Returns an Observable which will subscribe to this Completable and once that is completed then
will subscribe to the
next ObservableSource. |
<B> Observable<List<T>> |
Observable.buffer(Callable<? extends ObservableSource<B>> boundarySupplier)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
<B,U extends Collection<? super T>> |
Observable.buffer(Callable<? extends ObservableSource<B>> boundarySupplier,
Callable<U> bufferSupplier)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
Observable<List<T>> |
Observable.buffer(int count)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
<U extends Collection<? super T>> |
Observable.buffer(int count,
Callable<U> bufferSupplier)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
Observable<List<T>> |
Observable.buffer(int count,
int skip)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
<U extends Collection<? super T>> |
Observable.buffer(int count,
int skip,
Callable<U> bufferSupplier)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
Observable<List<T>> |
Observable.buffer(long timespan,
long timeskip,
TimeUnit unit)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
Observable<List<T>> |
Observable.buffer(long timespan,
long timeskip,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
<U extends Collection<? super T>> |
Observable.buffer(long timespan,
long timeskip,
TimeUnit unit,
Scheduler scheduler,
Callable<U> bufferSupplier)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
Observable<List<T>> |
Observable.buffer(long timespan,
TimeUnit unit)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
Observable<List<T>> |
Observable.buffer(long timespan,
TimeUnit unit,
int count)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
Observable<List<T>> |
Observable.buffer(long timespan,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
Observable<List<T>> |
Observable.buffer(long timespan,
TimeUnit unit,
Scheduler scheduler,
int count)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
<U extends Collection<? super T>> |
Observable.buffer(long timespan,
TimeUnit unit,
Scheduler scheduler,
int count,
Callable<U> bufferSupplier,
boolean restartTimerOnMaxSize)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
<TOpening,TClosing> |
Observable.buffer(ObservableSource<? extends TOpening> openingIndicator,
Function<? super TOpening,? extends ObservableSource<? extends TClosing>> closingIndicator)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
<TOpening,TClosing,U extends Collection<? super T>> |
Observable.buffer(ObservableSource<? extends TOpening> openingIndicator,
Function<? super TOpening,? extends ObservableSource<? extends TClosing>> closingIndicator,
Callable<U> bufferSupplier)
Returns an Observable that emits buffers of items it collects from the source ObservableSource.
|
<B> Observable<List<T>> |
Observable.buffer(ObservableSource<B> boundary)
Returns an Observable that emits non-overlapping buffered items from the source ObservableSource each time the
specified boundary ObservableSource emits an item.
|
<B,U extends Collection<? super T>> |
Observable.buffer(ObservableSource<B> boundary,
Callable<U> bufferSupplier)
Returns an Observable that emits non-overlapping buffered items from the source ObservableSource each time the
specified boundary ObservableSource emits an item.
|
<B> Observable<List<T>> |
Observable.buffer(ObservableSource<B> boundary,
int initialCapacity)
Returns an Observable that emits non-overlapping buffered items from the source ObservableSource each time the
specified boundary ObservableSource emits an item.
|
Observable<T> |
Observable.cache()
Returns an Observable that subscribes to this ObservableSource lazily, caches all of its events
and replays them, in the same order as received, to all the downstream subscribers.
|
Observable<T> |
Observable.cacheWithInitialCapacity(int initialCapacity)
Returns an Observable that subscribes to this ObservableSource lazily, caches all of its events
and replays them, in the same order as received, to all the downstream subscribers.
|
<U> Observable<U> |
Observable.cast(Class<U> clazz)
Returns an Observable that emits the items emitted by the source ObservableSource, converted to the specified
type.
|
static <T,R> Observable<R> |
Observable.combineLatest(Function<? super Object[],? extends R> combiner,
int bufferSize,
ObservableSource<? extends T>... sources)
Combines a collection of source ObservableSources by emitting an item that aggregates the latest values of each of
the source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function.
|
static <T,R> Observable<R> |
Observable.combineLatest(Iterable<? extends ObservableSource<? extends T>> sources,
Function<? super Object[],? extends R> combiner)
Combines a collection of source ObservableSources by emitting an item that aggregates the latest values of each of
the source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function.
|
static <T,R> Observable<R> |
Observable.combineLatest(Iterable<? extends ObservableSource<? extends T>> sources,
Function<? super Object[],? extends R> combiner,
int bufferSize)
Combines a collection of source ObservableSources by emitting an item that aggregates the latest values of each of
the source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function.
|
static <T,R> Observable<R> |
Observable.combineLatest(ObservableSource<? extends T>[] sources,
Function<? super Object[],? extends R> combiner)
Combines a collection of source ObservableSources by emitting an item that aggregates the latest values of each of
the source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function.
|
static <T,R> Observable<R> |
Observable.combineLatest(ObservableSource<? extends T>[] sources,
Function<? super Object[],? extends R> combiner,
int bufferSize)
Combines a collection of source ObservableSources by emitting an item that aggregates the latest values of each of
the source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function.
|
static <T1,T2,R> Observable<R> |
Observable.combineLatest(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
BiFunction<? super T1,? super T2,? extends R> combiner)
Combines two source ObservableSources by emitting an item that aggregates the latest values of each of the
source ObservableSources each time an item is received from either of the source ObservableSources, where this
aggregation is defined by a specified function.
|
static <T1,T2,T3,R> |
Observable.combineLatest(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
ObservableSource<? extends T3> source3,
Function3<? super T1,? super T2,? super T3,? extends R> combiner)
Combines three source ObservableSources by emitting an item that aggregates the latest values of each of the
source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function.
|
static <T1,T2,T3,T4,R> |
Observable.combineLatest(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
ObservableSource<? extends T3> source3,
ObservableSource<? extends T4> source4,
Function4<? super T1,? super T2,? super T3,? super T4,? extends R> combiner)
Combines four source ObservableSources by emitting an item that aggregates the latest values of each of the
source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function.
|
static <T1,T2,T3,T4,T5,R> |
Observable.combineLatest(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
ObservableSource<? extends T3> source3,
ObservableSource<? extends T4> source4,
ObservableSource<? extends T5> source5,
Function5<? super T1,? super T2,? super T3,? super T4,? super T5,? extends R> combiner)
Combines five source ObservableSources by emitting an item that aggregates the latest values of each of the
source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function.
|
static <T1,T2,T3,T4,T5,T6,R> |
Observable.combineLatest(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
ObservableSource<? extends T3> source3,
ObservableSource<? extends T4> source4,
ObservableSource<? extends T5> source5,
ObservableSource<? extends T6> source6,
Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? extends R> combiner)
Combines six source ObservableSources by emitting an item that aggregates the latest values of each of the
source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function.
|
static <T1,T2,T3,T4,T5,T6,T7,R> |
Observable.combineLatest(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
ObservableSource<? extends T3> source3,
ObservableSource<? extends T4> source4,
ObservableSource<? extends T5> source5,
ObservableSource<? extends T6> source6,
ObservableSource<? extends T7> source7,
Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? extends R> combiner)
Combines seven source ObservableSources by emitting an item that aggregates the latest values of each of the
source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function.
|
static <T1,T2,T3,T4,T5,T6,T7,T8,R> |
Observable.combineLatest(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
ObservableSource<? extends T3> source3,
ObservableSource<? extends T4> source4,
ObservableSource<? extends T5> source5,
ObservableSource<? extends T6> source6,
ObservableSource<? extends T7> source7,
ObservableSource<? extends T8> source8,
Function8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? extends R> combiner)
Combines eight source ObservableSources by emitting an item that aggregates the latest values of each of the
source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function.
|
static <T1,T2,T3,T4,T5,T6,T7,T8,T9,R> |
Observable.combineLatest(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
ObservableSource<? extends T3> source3,
ObservableSource<? extends T4> source4,
ObservableSource<? extends T5> source5,
ObservableSource<? extends T6> source6,
ObservableSource<? extends T7> source7,
ObservableSource<? extends T8> source8,
ObservableSource<? extends T9> source9,
Function9<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? super T9,? extends R> combiner)
Combines nine source ObservableSources by emitting an item that aggregates the latest values of each of the
source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function.
|
static <T,R> Observable<R> |
Observable.combineLatestDelayError(Function<? super Object[],? extends R> combiner,
int bufferSize,
ObservableSource<? extends T>... sources)
Combines a collection of source ObservableSources by emitting an item that aggregates the latest values of each of
the source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function and delays any error from the sources until
all source ObservableSources terminate.
|
static <T,R> Observable<R> |
Observable.combineLatestDelayError(Iterable<? extends ObservableSource<? extends T>> sources,
Function<? super Object[],? extends R> combiner)
Combines a collection of source ObservableSources by emitting an item that aggregates the latest values of each of
the source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function and delays any error from the sources until
all source ObservableSources terminate.
|
static <T,R> Observable<R> |
Observable.combineLatestDelayError(Iterable<? extends ObservableSource<? extends T>> sources,
Function<? super Object[],? extends R> combiner,
int bufferSize)
Combines a collection of source ObservableSources by emitting an item that aggregates the latest values of each of
the source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function and delays any error from the sources until
all source ObservableSources terminate.
|
static <T,R> Observable<R> |
Observable.combineLatestDelayError(ObservableSource<? extends T>[] sources,
Function<? super Object[],? extends R> combiner)
Combines a collection of source ObservableSources by emitting an item that aggregates the latest values of each of
the source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function.
|
static <T,R> Observable<R> |
Observable.combineLatestDelayError(ObservableSource<? extends T>[] sources,
Function<? super Object[],? extends R> combiner,
int bufferSize)
Combines a collection of source ObservableSources by emitting an item that aggregates the latest values of each of
the source ObservableSources each time an item is received from any of the source ObservableSources, where this
aggregation is defined by a specified function and delays any error from the sources until
all source ObservableSources terminate.
|
<R> Observable<R> |
Observable.compose(ObservableTransformer<? super T,? extends R> composer)
Transform an ObservableSource by applying a particular Transformer function to it.
|
static <T> Observable<T> |
Observable.concat(Iterable<? extends ObservableSource<? extends T>> sources)
Concatenates elements of each ObservableSource provided via an Iterable sequence into a single sequence
of elements without interleaving them.
|
static <T> Observable<T> |
Observable.concat(ObservableSource<? extends ObservableSource<? extends T>> sources)
Returns an Observable that emits the items emitted by each of the ObservableSources emitted by the source
ObservableSource, one after the other, without interleaving them.
|
static <T> Observable<T> |
Observable.concat(ObservableSource<? extends ObservableSource<? extends T>> sources,
int prefetch)
Returns an Observable that emits the items emitted by each of the ObservableSources emitted by the source
ObservableSource, one after the other, without interleaving them.
|
static <T> Observable<T> |
Single.concat(ObservableSource<? extends SingleSource<? extends T>> sources)
Concatenate the single values, in a non-overlapping fashion, of the SingleSources provided by
an Observable sequence.
|
static <T> Observable<T> |
Observable.concat(ObservableSource<? extends T> source1,
ObservableSource<? extends T> source2)
Returns an Observable that emits the items emitted by two ObservableSources, one after the other, without
interleaving them.
|
static <T> Observable<T> |
Observable.concat(ObservableSource<? extends T> source1,
ObservableSource<? extends T> source2,
ObservableSource<? extends T> source3)
Returns an Observable that emits the items emitted by three ObservableSources, one after the other, without
interleaving them.
|
static <T> Observable<T> |
Observable.concat(ObservableSource<? extends T> source1,
ObservableSource<? extends T> source2,
ObservableSource<? extends T> source3,
ObservableSource<? extends T> source4)
Returns an Observable that emits the items emitted by four ObservableSources, one after the other, without
interleaving them.
|
static <T> Observable<T> |
Observable.concatArray(ObservableSource<? extends T>... sources)
Concatenates a variable number of ObservableSource sources.
|
static <T> Observable<T> |
Observable.concatArrayDelayError(ObservableSource<? extends T>... sources)
Concatenates a variable number of ObservableSource sources and delays errors from any of them
till all terminate.
|
static <T> Observable<T> |
Observable.concatArrayEager(int maxConcurrency,
int prefetch,
ObservableSource<? extends T>... sources)
Concatenates an array of ObservableSources eagerly into a single stream of values.
|
static <T> Observable<T> |
Observable.concatArrayEager(ObservableSource<? extends T>... sources)
Concatenates an array of ObservableSources eagerly into a single stream of values.
|
static <T> Observable<T> |
Observable.concatArrayEagerDelayError(int maxConcurrency,
int prefetch,
ObservableSource<? extends T>... sources)
Concatenates an array of
ObservableSource s eagerly into a single stream of values
and delaying any errors until all sources terminate. |
static <T> Observable<T> |
Observable.concatArrayEagerDelayError(ObservableSource<? extends T>... sources)
Concatenates an array of
ObservableSource s eagerly into a single stream of values
and delaying any errors until all sources terminate. |
static <T> Observable<T> |
Observable.concatDelayError(Iterable<? extends ObservableSource<? extends T>> sources)
Concatenates the Iterable sequence of ObservableSources into a single sequence by subscribing to each ObservableSource,
one after the other, one at a time and delays any errors till the all inner ObservableSources terminate.
|
static <T> Observable<T> |
Observable.concatDelayError(ObservableSource<? extends ObservableSource<? extends T>> sources)
Concatenates the ObservableSource sequence of ObservableSources into a single sequence by subscribing to each inner ObservableSource,
one after the other, one at a time and delays any errors till the all inner and the outer ObservableSources terminate.
|
static <T> Observable<T> |
Observable.concatDelayError(ObservableSource<? extends ObservableSource<? extends T>> sources,
int prefetch,
boolean tillTheEnd)
Concatenates the ObservableSource sequence of ObservableSources into a single sequence by subscribing to each inner ObservableSource,
one after the other, one at a time and delays any errors till the all inner and the outer ObservableSources terminate.
|
static <T> Observable<T> |
Observable.concatEager(Iterable<? extends ObservableSource<? extends T>> sources)
Concatenates a sequence of ObservableSources eagerly into a single stream of values.
|
static <T> Observable<T> |
Observable.concatEager(Iterable<? extends ObservableSource<? extends T>> sources,
int maxConcurrency,
int prefetch)
Concatenates a sequence of ObservableSources eagerly into a single stream of values.
|
static <T> Observable<T> |
Observable.concatEager(ObservableSource<? extends ObservableSource<? extends T>> sources)
Concatenates an ObservableSource sequence of ObservableSources eagerly into a single stream of values.
|
static <T> Observable<T> |
Observable.concatEager(ObservableSource<? extends ObservableSource<? extends T>> sources,
int maxConcurrency,
int prefetch)
Concatenates an ObservableSource sequence of ObservableSources eagerly into a single stream of values.
|
<R> Observable<R> |
Observable.concatMap(Function<? super T,? extends ObservableSource<? extends R>> mapper)
Returns a new Observable that emits items resulting from applying a function that you supply to each item
emitted by the source ObservableSource, where that function returns an ObservableSource, and then emitting the items
that result from concatenating those resulting ObservableSources.
|
<R> Observable<R> |
Observable.concatMap(Function<? super T,? extends ObservableSource<? extends R>> mapper,
int prefetch)
Returns a new Observable that emits items resulting from applying a function that you supply to each item
emitted by the source ObservableSource, where that function returns an ObservableSource, and then emitting the items
that result from concatenating those resulting ObservableSources.
|
<R> Observable<R> |
Observable.concatMapDelayError(Function<? super T,? extends ObservableSource<? extends R>> mapper)
Maps each of the items into an ObservableSource, subscribes to them one after the other,
one at a time and emits their values in order
while delaying any error from either this or any of the inner ObservableSources
till all of them terminate.
|
<R> Observable<R> |
Observable.concatMapDelayError(Function<? super T,? extends ObservableSource<? extends R>> mapper,
int prefetch,
boolean tillTheEnd)
Maps each of the items into an ObservableSource, subscribes to them one after the other,
one at a time and emits their values in order
while delaying any error from either this or any of the inner ObservableSources
till all of them terminate.
|
<R> Observable<R> |
Observable.concatMapEager(Function<? super T,? extends ObservableSource<? extends R>> mapper)
Maps a sequence of values into ObservableSources and concatenates these ObservableSources eagerly into a single
ObservableSource.
|
<R> Observable<R> |
Observable.concatMapEager(Function<? super T,? extends ObservableSource<? extends R>> mapper,
int maxConcurrency,
int prefetch)
Maps a sequence of values into ObservableSources and concatenates these ObservableSources eagerly into a single
ObservableSource.
|
<R> Observable<R> |
Observable.concatMapEagerDelayError(Function<? super T,? extends ObservableSource<? extends R>> mapper,
boolean tillTheEnd)
Maps a sequence of values into ObservableSources and concatenates these ObservableSources eagerly into a single
ObservableSource.
|
<R> Observable<R> |
Observable.concatMapEagerDelayError(Function<? super T,? extends ObservableSource<? extends R>> mapper,
int maxConcurrency,
int prefetch,
boolean tillTheEnd)
Maps a sequence of values into ObservableSources and concatenates these ObservableSources eagerly into a single
ObservableSource.
|
<U> Observable<U> |
Observable.concatMapIterable(Function<? super T,? extends Iterable<? extends U>> mapper)
Returns an Observable that concatenate each item emitted by the source ObservableSource with the values in an
Iterable corresponding to that item that is generated by a selector.
|
<U> Observable<U> |
Observable.concatMapIterable(Function<? super T,? extends Iterable<? extends U>> mapper,
int prefetch)
Returns an Observable that concatenate each item emitted by the source ObservableSource with the values in an
Iterable corresponding to that item that is generated by a selector.
|
<R> Observable<R> |
Observable.concatMapMaybe(Function<? super T,? extends MaybeSource<? extends R>> mapper)
Maps the upstream items into
MaybeSource s and subscribes to them one after the
other succeeds or completes, emits their success value if available or terminates immediately if
either this Observable or the current inner MaybeSource fail. |
<R> Observable<R> |
Observable.concatMapMaybe(Function<? super T,? extends MaybeSource<? extends R>> mapper,
int prefetch)
Maps the upstream items into
MaybeSource s and subscribes to them one after the
other succeeds or completes, emits their success value if available or terminates immediately if
either this Observable or the current inner MaybeSource fail. |
<R> Observable<R> |
Observable.concatMapMaybeDelayError(Function<? super T,? extends MaybeSource<? extends R>> mapper)
Maps the upstream items into
MaybeSource s and subscribes to them one after the
other terminates, emits their success value if available and delaying all errors
till both this Observable and all inner MaybeSource s terminate. |
<R> Observable<R> |
Observable.concatMapMaybeDelayError(Function<? super T,? extends MaybeSource<? extends R>> mapper,
boolean tillTheEnd)
Maps the upstream items into
MaybeSource s and subscribes to them one after the
other terminates, emits their success value if available and optionally delaying all errors
till both this Observable and all inner MaybeSource s terminate. |
<R> Observable<R> |
Observable.concatMapMaybeDelayError(Function<? super T,? extends MaybeSource<? extends R>> mapper,
boolean tillTheEnd,
int prefetch)
Maps the upstream items into
MaybeSource s and subscribes to them one after the
other terminates, emits their success value if available and optionally delaying all errors
till both this Observable and all inner MaybeSource s terminate. |
<R> Observable<R> |
Observable.concatMapSingle(Function<? super T,? extends SingleSource<? extends R>> mapper)
Maps the upstream items into
SingleSource s and subscribes to them one after the
other succeeds, emits their success values or terminates immediately if
either this Observable or the current inner SingleSource fail. |
<R> Observable<R> |
Observable.concatMapSingle(Function<? super T,? extends SingleSource<? extends R>> mapper,
int prefetch)
Maps the upstream items into
SingleSource s and subscribes to them one after the
other succeeds, emits their success values or terminates immediately if
either this Observable or the current inner SingleSource fail. |
<R> Observable<R> |
Observable.concatMapSingleDelayError(Function<? super T,? extends SingleSource<? extends R>> mapper)
Maps the upstream items into
SingleSource s and subscribes to them one after the
other succeeds or fails, emits their success values and delays all errors
till both this Observable and all inner SingleSource s terminate. |
<R> Observable<R> |
Observable.concatMapSingleDelayError(Function<? super T,? extends SingleSource<? extends R>> mapper,
boolean tillTheEnd)
Maps the upstream items into
SingleSource s and subscribes to them one after the
other succeeds or fails, emits their success values and optionally delays all errors
till both this Observable and all inner SingleSource s terminate. |
<R> Observable<R> |
Observable.concatMapSingleDelayError(Function<? super T,? extends SingleSource<? extends R>> mapper,
boolean tillTheEnd,
int prefetch)
Maps the upstream items into
SingleSource s and subscribes to them one after the
other succeeds or fails, emits their success values and optionally delays errors
till both this Observable and all inner SingleSource s terminate. |
Observable<T> |
Observable.concatWith(CompletableSource other)
Returns an
Observable that emits items from this Observable and when it completes normally, the
other CompletableSource is subscribed to and the returned Observable emits its terminal events. |
Observable<T> |
Observable.concatWith(MaybeSource<? extends T> other)
Returns an
Observable that emits the items from this Observable followed by the success item or terminal events
of the other MaybeSource . |
Observable<T> |
Observable.concatWith(ObservableSource<? extends T> other)
Returns an Observable that emits the items emitted from the current ObservableSource, then the next, one after
the other, without interleaving them.
|
Observable<T> |
Observable.concatWith(SingleSource<? extends T> other)
Returns an
Observable that emits the items from this Observable followed by the success item or error event
of the other SingleSource . |
static <T> Observable<T> |
Observable.create(ObservableOnSubscribe<T> source)
Provides an API (via a cold Observable) that bridges the reactive world with the callback-style world.
|
<U> Observable<T> |
Observable.debounce(Function<? super T,? extends ObservableSource<U>> debounceSelector)
Returns an Observable that mirrors the source ObservableSource, except that it drops items emitted by the
source ObservableSource that are followed by another item within a computed debounce duration.
|
Observable<T> |
Observable.debounce(long timeout,
TimeUnit unit)
Returns an Observable that mirrors the source ObservableSource, except that it drops items emitted by the
source ObservableSource that are followed by newer items before a timeout value expires.
|
Observable<T> |
Observable.debounce(long timeout,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that mirrors the source ObservableSource, except that it drops items emitted by the
source ObservableSource that are followed by newer items before a timeout value expires on a specified
Scheduler.
|
Observable<T> |
Observable.defaultIfEmpty(T defaultItem)
Returns an Observable that emits the items emitted by the source ObservableSource or a specified default item
if the source ObservableSource is empty.
|
static <T> Observable<T> |
Observable.defer(Callable<? extends ObservableSource<? extends T>> supplier)
Returns an Observable that calls an ObservableSource factory to create an ObservableSource for each new Observer
that subscribes.
|
<U> Observable<T> |
Observable.delay(Function<? super T,? extends ObservableSource<U>> itemDelay)
Returns an Observable that delays the emissions of the source ObservableSource via another ObservableSource on a
per-item basis.
|
Observable<T> |
Observable.delay(long delay,
TimeUnit unit)
Returns an Observable that emits the items emitted by the source ObservableSource shifted forward in time by a
specified delay.
|
Observable<T> |
Observable.delay(long delay,
TimeUnit unit,
boolean delayError)
Returns an Observable that emits the items emitted by the source ObservableSource shifted forward in time by a
specified delay.
|
Observable<T> |
Observable.delay(long delay,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits the items emitted by the source ObservableSource shifted forward in time by a
specified delay.
|
Observable<T> |
Observable.delay(long delay,
TimeUnit unit,
Scheduler scheduler,
boolean delayError)
Returns an Observable that emits the items emitted by the source ObservableSource shifted forward in time by a
specified delay.
|
<U,V> Observable<T> |
Observable.delay(ObservableSource<U> subscriptionDelay,
Function<? super T,? extends ObservableSource<V>> itemDelay)
Returns an Observable that delays the subscription to and emissions from the source ObservableSource via another
ObservableSource on a per-item basis.
|
Observable<T> |
Observable.delaySubscription(long delay,
TimeUnit unit)
Returns an Observable that delays the subscription to the source ObservableSource by a given amount of time.
|
Observable<T> |
Observable.delaySubscription(long delay,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that delays the subscription to the source ObservableSource by a given amount of time,
both waiting and subscribing on a given Scheduler.
|
<U> Observable<T> |
Observable.delaySubscription(ObservableSource<U> other)
Returns an Observable that delays the subscription to this Observable
until the other Observable emits an element or completes normally.
|
<T2> Observable<T2> |
Observable.dematerialize()
Deprecated.
in 2.2.4; inherently type-unsafe as it overrides the output generic type. Use
dematerialize(Function) instead. |
<R> Observable<R> |
Observable.dematerialize(Function<? super T,Notification<R>> selector)
Returns an Observable that reverses the effect of
materialize by transforming the
Notification objects extracted from the source items via a selector function
into their respective Observer signal types. |
Observable<T> |
Observable.distinct()
Returns an Observable that emits all items emitted by the source ObservableSource that are distinct
based on
Object.equals(Object) comparison. |
<K> Observable<T> |
Observable.distinct(Function<? super T,K> keySelector)
Returns an Observable that emits all items emitted by the source ObservableSource that are distinct according
to a key selector function and based on
Object.equals(Object) comparison of the objects
returned by the key selector function. |
<K> Observable<T> |
Observable.distinct(Function<? super T,K> keySelector,
Callable<? extends Collection<? super K>> collectionSupplier)
Returns an Observable that emits all items emitted by the source ObservableSource that are distinct according
to a key selector function and based on
Object.equals(Object) comparison of the objects
returned by the key selector function. |
Observable<T> |
Observable.distinctUntilChanged()
Returns an Observable that emits all items emitted by the source ObservableSource that are distinct from their
immediate predecessors based on
Object.equals(Object) comparison. |
Observable<T> |
Observable.distinctUntilChanged(BiPredicate<? super T,? super T> comparer)
Returns an Observable that emits all items emitted by the source ObservableSource that are distinct from their
immediate predecessors when compared with each other via the provided comparator function.
|
<K> Observable<T> |
Observable.distinctUntilChanged(Function<? super T,K> keySelector)
Returns an Observable that emits all items emitted by the source ObservableSource that are distinct from their
immediate predecessors, according to a key selector function and based on
Object.equals(Object) comparison
of those objects returned by the key selector function. |
Observable<T> |
Observable.doAfterNext(Consumer<? super T> onAfterNext)
Calls the specified consumer with the current item after this item has been emitted to the downstream.
|
Observable<T> |
Observable.doAfterTerminate(Action onFinally)
|
Observable<T> |
Observable.doFinally(Action onFinally)
Calls the specified action after this Observable signals onError or onCompleted or gets disposed by
the downstream.
|
Observable<T> |
Observable.doOnComplete(Action onComplete)
Modifies the source ObservableSource so that it invokes an action when it calls
onComplete . |
Observable<T> |
Observable.doOnDispose(Action onDispose)
Calls the dispose
Action if the downstream disposes the sequence. |
Observable<T> |
Observable.doOnEach(Consumer<? super Notification<T>> onNotification)
Modifies the source ObservableSource so that it invokes an action for each item it emits.
|
Observable<T> |
Observable.doOnEach(Observer<? super T> observer)
Modifies the source ObservableSource so that it notifies an Observer for each item and terminal event it emits.
|
Observable<T> |
Observable.doOnError(Consumer<? super Throwable> onError)
Modifies the source ObservableSource so that it invokes an action if it calls
onError . |
Observable<T> |
Observable.doOnLifecycle(Consumer<? super Disposable> onSubscribe,
Action onDispose)
Calls the appropriate onXXX method (shared between all Observer) for the lifecycle events of
the sequence (subscription, disposal).
|
Observable<T> |
Observable.doOnNext(Consumer<? super T> onNext)
Modifies the source ObservableSource so that it invokes an action when it calls
onNext . |
Observable<T> |
Observable.doOnSubscribe(Consumer<? super Disposable> onSubscribe)
Modifies the source
ObservableSource so that it invokes the given action when it is subscribed from
its subscribers. |
Observable<T> |
Observable.doOnTerminate(Action onTerminate)
Modifies the source ObservableSource so that it invokes an action when it calls
onComplete or
onError . |
static <T> Observable<T> |
Observable.empty()
Returns an Observable that emits no items to the
Observer and immediately invokes its
onComplete method. |
static <T> Observable<T> |
Observable.error(Callable<? extends Throwable> errorSupplier)
|
static <T> Observable<T> |
Observable.error(Throwable exception)
|
Observable<T> |
Observable.filter(Predicate<? super T> predicate)
Filters items emitted by an ObservableSource by only emitting those that satisfy a specified predicate.
|
<R> Observable<R> |
Observable.flatMap(Function<? super T,? extends ObservableSource<? extends R>> mapper)
Returns an Observable that emits items based on applying a function that you supply to each item emitted
by the source ObservableSource, where that function returns an ObservableSource, and then merging those resulting
ObservableSources and emitting the results of this merger.
|
<R> Observable<R> |
Observable.flatMap(Function<? super T,? extends ObservableSource<? extends R>> mapper,
boolean delayErrors)
Returns an Observable that emits items based on applying a function that you supply to each item emitted
by the source ObservableSource, where that function returns an ObservableSource, and then merging those resulting
ObservableSources and emitting the results of this merger.
|
<R> Observable<R> |
Observable.flatMap(Function<? super T,? extends ObservableSource<? extends R>> mapper,
boolean delayErrors,
int maxConcurrency)
Returns an Observable that emits items based on applying a function that you supply to each item emitted
by the source ObservableSource, where that function returns an ObservableSource, and then merging those resulting
ObservableSources and emitting the results of this merger, while limiting the maximum number of concurrent
subscriptions to these ObservableSources.
|
<R> Observable<R> |
Observable.flatMap(Function<? super T,? extends ObservableSource<? extends R>> mapper,
boolean delayErrors,
int maxConcurrency,
int bufferSize)
Returns an Observable that emits items based on applying a function that you supply to each item emitted
by the source ObservableSource, where that function returns an ObservableSource, and then merging those resulting
ObservableSources and emitting the results of this merger, while limiting the maximum number of concurrent
subscriptions to these ObservableSources.
|
<R> Observable<R> |
Observable.flatMap(Function<? super T,? extends ObservableSource<? extends R>> onNextMapper,
Function<? super Throwable,? extends ObservableSource<? extends R>> onErrorMapper,
Callable<? extends ObservableSource<? extends R>> onCompleteSupplier)
Returns an Observable that applies a function to each item emitted or notification raised by the source
ObservableSource and then flattens the ObservableSources returned from these functions and emits the resulting items.
|
<R> Observable<R> |
Observable.flatMap(Function<? super T,? extends ObservableSource<? extends R>> onNextMapper,
Function<Throwable,? extends ObservableSource<? extends R>> onErrorMapper,
Callable<? extends ObservableSource<? extends R>> onCompleteSupplier,
int maxConcurrency)
Returns an Observable that applies a function to each item emitted or notification raised by the source
ObservableSource and then flattens the ObservableSources returned from these functions and emits the resulting items,
while limiting the maximum number of concurrent subscriptions to these ObservableSources.
|
<R> Observable<R> |
Observable.flatMap(Function<? super T,? extends ObservableSource<? extends R>> mapper,
int maxConcurrency)
Returns an Observable that emits items based on applying a function that you supply to each item emitted
by the source ObservableSource, where that function returns an ObservableSource, and then merging those resulting
ObservableSources and emitting the results of this merger, while limiting the maximum number of concurrent
subscriptions to these ObservableSources.
|
<U,R> Observable<R> |
Observable.flatMap(Function<? super T,? extends ObservableSource<? extends U>> mapper,
BiFunction<? super T,? super U,? extends R> resultSelector)
Returns an Observable that emits the results of a specified function to the pair of values emitted by the
source ObservableSource and a specified collection ObservableSource.
|
<U,R> Observable<R> |
Observable.flatMap(Function<? super T,? extends ObservableSource<? extends U>> mapper,
BiFunction<? super T,? super U,? extends R> combiner,
boolean delayErrors)
Returns an Observable that emits the results of a specified function to the pair of values emitted by the
source ObservableSource and a specified collection ObservableSource.
|
<U,R> Observable<R> |
Observable.flatMap(Function<? super T,? extends ObservableSource<? extends U>> mapper,
BiFunction<? super T,? super U,? extends R> combiner,
boolean delayErrors,
int maxConcurrency)
Returns an Observable that emits the results of a specified function to the pair of values emitted by the
source ObservableSource and a specified collection ObservableSource, while limiting the maximum number of concurrent
subscriptions to these ObservableSources.
|
<U,R> Observable<R> |
Observable.flatMap(Function<? super T,? extends ObservableSource<? extends U>> mapper,
BiFunction<? super T,? super U,? extends R> combiner,
boolean delayErrors,
int maxConcurrency,
int bufferSize)
Returns an Observable that emits the results of a specified function to the pair of values emitted by the
source ObservableSource and a specified collection ObservableSource, while limiting the maximum number of concurrent
subscriptions to these ObservableSources.
|
<U,R> Observable<R> |
Observable.flatMap(Function<? super T,? extends ObservableSource<? extends U>> mapper,
BiFunction<? super T,? super U,? extends R> combiner,
int maxConcurrency)
Returns an Observable that emits the results of a specified function to the pair of values emitted by the
source ObservableSource and a specified collection ObservableSource, while limiting the maximum number of concurrent
subscriptions to these ObservableSources.
|
<U> Observable<U> |
Observable.flatMapIterable(Function<? super T,? extends Iterable<? extends U>> mapper)
Returns an Observable that merges each item emitted by the source ObservableSource with the values in an
Iterable corresponding to that item that is generated by a selector.
|
<U,V> Observable<V> |
Observable.flatMapIterable(Function<? super T,? extends Iterable<? extends U>> mapper,
BiFunction<? super T,? super U,? extends V> resultSelector)
Returns an Observable that emits the results of applying a function to the pair of values from the source
ObservableSource and an Iterable corresponding to that item that is generated by a selector.
|
<R> Observable<R> |
Observable.flatMapMaybe(Function<? super T,? extends MaybeSource<? extends R>> mapper)
Maps each element of the upstream Observable into MaybeSources, subscribes to all of them
and merges their onSuccess values, in no particular order, into a single Observable sequence.
|
<R> Observable<R> |
Observable.flatMapMaybe(Function<? super T,? extends MaybeSource<? extends R>> mapper,
boolean delayErrors)
Maps each element of the upstream Observable into MaybeSources, subscribes to them
and merges their onSuccess values, in no particular order, into a single Observable sequence,
optionally delaying all errors.
|
<R> Observable<R> |
Single.flatMapObservable(Function<? super T,? extends ObservableSource<? extends R>> mapper)
Returns an Observable that is based on applying a specified function to the item emitted by the source Single,
where that function returns an ObservableSource.
|
<R> Observable<R> |
Maybe.flatMapObservable(Function<? super T,? extends ObservableSource<? extends R>> mapper)
Returns an Observable that is based on applying a specified function to the item emitted by the source Maybe,
where that function returns an ObservableSource.
|
<R> Observable<R> |
Observable.flatMapSingle(Function<? super T,? extends SingleSource<? extends R>> mapper)
Maps each element of the upstream Observable into SingleSources, subscribes to all of them
and merges their onSuccess values, in no particular order, into a single Observable sequence.
|
<R> Observable<R> |
Observable.flatMapSingle(Function<? super T,? extends SingleSource<? extends R>> mapper,
boolean delayErrors)
Maps each element of the upstream Observable into SingleSources, subscribes to them
and merges their onSuccess values, in no particular order, into a single Observable sequence,
optionally delaying all errors.
|
<U> Observable<U> |
Single.flattenAsObservable(Function<? super T,? extends Iterable<? extends U>> mapper)
Returns an Observable that maps a success value into an Iterable and emits its items.
|
<U> Observable<U> |
Maybe.flattenAsObservable(Function<? super T,? extends Iterable<? extends U>> mapper)
Returns an Observable that maps a success value into an Iterable and emits its items.
|
static <T> Observable<T> |
Observable.fromArray(T... items)
Converts an Array into an ObservableSource that emits the items in the Array.
|
static <T> Observable<T> |
Observable.fromCallable(Callable<? extends T> supplier)
Returns an Observable that, when an observer subscribes to it, invokes a function you specify and then
emits the value returned from that function.
|
static <T> Observable<T> |
Observable.fromFuture(Future<? extends T> future)
Converts a
Future into an ObservableSource. |
static <T> Observable<T> |
Observable.fromFuture(Future<? extends T> future,
long timeout,
TimeUnit unit)
Converts a
Future into an ObservableSource, with a timeout on the Future. |
static <T> Observable<T> |
Observable.fromFuture(Future<? extends T> future,
long timeout,
TimeUnit unit,
Scheduler scheduler)
Converts a
Future into an ObservableSource, with a timeout on the Future. |
static <T> Observable<T> |
Observable.fromFuture(Future<? extends T> future,
Scheduler scheduler)
|
static <T> Observable<T> |
Observable.fromIterable(Iterable<? extends T> source)
Converts an
Iterable sequence into an ObservableSource that emits the items in the sequence. |
static <T> Observable<T> |
Observable.fromPublisher(org.reactivestreams.Publisher<? extends T> publisher)
Converts an arbitrary Reactive-Streams Publisher into an Observable.
|
static <T,S> Observable<T> |
Observable.generate(Callable<S> initialState,
BiConsumer<S,Emitter<T>> generator)
Returns a cold, synchronous and stateful generator of values.
|
static <T,S> Observable<T> |
Observable.generate(Callable<S> initialState,
BiConsumer<S,Emitter<T>> generator,
Consumer<? super S> disposeState)
Returns a cold, synchronous and stateful generator of values.
|
static <T,S> Observable<T> |
Observable.generate(Callable<S> initialState,
BiFunction<S,Emitter<T>,S> generator)
Returns a cold, synchronous and stateful generator of values.
|
static <T,S> Observable<T> |
Observable.generate(Callable<S> initialState,
BiFunction<S,Emitter<T>,S> generator,
Consumer<? super S> disposeState)
Returns a cold, synchronous and stateful generator of values.
|
static <T> Observable<T> |
Observable.generate(Consumer<Emitter<T>> generator)
Returns a cold, synchronous and stateless generator of values.
|
<K> Observable<GroupedObservable<K,T>> |
Observable.groupBy(Function<? super T,? extends K> keySelector)
Groups the items emitted by an
ObservableSource according to a specified criterion, and emits these
grouped items as GroupedObservable s. |
<K> Observable<GroupedObservable<K,T>> |
Observable.groupBy(Function<? super T,? extends K> keySelector,
boolean delayError)
Groups the items emitted by an
ObservableSource according to a specified criterion, and emits these
grouped items as GroupedObservable s. |
<K,V> Observable<GroupedObservable<K,V>> |
Observable.groupBy(Function<? super T,? extends K> keySelector,
Function<? super T,? extends V> valueSelector)
Groups the items emitted by an
ObservableSource according to a specified criterion, and emits these
grouped items as GroupedObservable s. |
<K,V> Observable<GroupedObservable<K,V>> |
Observable.groupBy(Function<? super T,? extends K> keySelector,
Function<? super T,? extends V> valueSelector,
boolean delayError)
Groups the items emitted by an
ObservableSource according to a specified criterion, and emits these
grouped items as GroupedObservable s. |
<K,V> Observable<GroupedObservable<K,V>> |
Observable.groupBy(Function<? super T,? extends K> keySelector,
Function<? super T,? extends V> valueSelector,
boolean delayError,
int bufferSize)
Groups the items emitted by an
ObservableSource according to a specified criterion, and emits these
grouped items as GroupedObservable s. |
<TRight,TLeftEnd,TRightEnd,R> |
Observable.groupJoin(ObservableSource<? extends TRight> other,
Function<? super T,? extends ObservableSource<TLeftEnd>> leftEnd,
Function<? super TRight,? extends ObservableSource<TRightEnd>> rightEnd,
BiFunction<? super T,? super Observable<TRight>,? extends R> resultSelector)
Returns an Observable that correlates two ObservableSources when they overlap in time and groups the results.
|
Observable<T> |
Observable.hide()
Hides the identity of this Observable and its Disposable.
|
static Observable<Long> |
Observable.interval(long initialDelay,
long period,
TimeUnit unit)
Returns an Observable that emits a
0L after the initialDelay and ever increasing numbers
after each period of time thereafter. |
static Observable<Long> |
Observable.interval(long initialDelay,
long period,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits a
0L after the initialDelay and ever increasing numbers
after each period of time thereafter, on a specified Scheduler . |
static Observable<Long> |
Observable.interval(long period,
TimeUnit unit)
Returns an Observable that emits a sequential number every specified interval of time.
|
static Observable<Long> |
Observable.interval(long period,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits a sequential number every specified interval of time, on a
specified Scheduler.
|
static Observable<Long> |
Observable.intervalRange(long start,
long count,
long initialDelay,
long period,
TimeUnit unit)
Signals a range of long values, the first after some initial delay and the rest periodically after.
|
static Observable<Long> |
Observable.intervalRange(long start,
long count,
long initialDelay,
long period,
TimeUnit unit,
Scheduler scheduler)
Signals a range of long values, the first after some initial delay and the rest periodically after.
|
<TRight,TLeftEnd,TRightEnd,R> |
Observable.join(ObservableSource<? extends TRight> other,
Function<? super T,? extends ObservableSource<TLeftEnd>> leftEnd,
Function<? super TRight,? extends ObservableSource<TRightEnd>> rightEnd,
BiFunction<? super T,? super TRight,? extends R> resultSelector)
Correlates the items emitted by two ObservableSources based on overlapping durations.
|
static <T> Observable<T> |
Observable.just(T item)
Returns an Observable that signals the given (constant reference) item and then completes.
|
static <T> Observable<T> |
Observable.just(T item1,
T item2)
Converts two items into an ObservableSource that emits those items.
|
static <T> Observable<T> |
Observable.just(T item1,
T item2,
T item3)
Converts three items into an ObservableSource that emits those items.
|
static <T> Observable<T> |
Observable.just(T item1,
T item2,
T item3,
T item4)
Converts four items into an ObservableSource that emits those items.
|
static <T> Observable<T> |
Observable.just(T item1,
T item2,
T item3,
T item4,
T item5)
Converts five items into an ObservableSource that emits those items.
|
static <T> Observable<T> |
Observable.just(T item1,
T item2,
T item3,
T item4,
T item5,
T item6)
Converts six items into an ObservableSource that emits those items.
|
static <T> Observable<T> |
Observable.just(T item1,
T item2,
T item3,
T item4,
T item5,
T item6,
T item7)
Converts seven items into an ObservableSource that emits those items.
|
static <T> Observable<T> |
Observable.just(T item1,
T item2,
T item3,
T item4,
T item5,
T item6,
T item7,
T item8)
Converts eight items into an ObservableSource that emits those items.
|
static <T> Observable<T> |
Observable.just(T item1,
T item2,
T item3,
T item4,
T item5,
T item6,
T item7,
T item8,
T item9)
Converts nine items into an ObservableSource that emits those items.
|
static <T> Observable<T> |
Observable.just(T item1,
T item2,
T item3,
T item4,
T item5,
T item6,
T item7,
T item8,
T item9,
T item10)
Converts ten items into an ObservableSource that emits those items.
|
<R> Observable<R> |
Observable.lift(ObservableOperator<? extends R,? super T> lifter)
This method requires advanced knowledge about building operators, please consider
other standard composition methods first;
Returns an
Observable which, when subscribed to, invokes the apply(Observer) method
of the provided ObservableOperator for each individual downstream Observer and allows the
insertion of a custom operator by accessing the downstream's Observer during this subscription phase
and providing a new Observer , containing the custom operator's intended business logic, that will be
used in the subscription process going further upstream. |
<R> Observable<R> |
Observable.map(Function<? super T,? extends R> mapper)
Returns an Observable that applies a specified function to each item emitted by the source ObservableSource and
emits the results of these function applications.
|
Observable<Notification<T>> |
Observable.materialize()
Returns an Observable that represents all of the emissions and notifications from the source
ObservableSource into emissions marked with their original types within
Notification objects. |
static <T> Observable<T> |
Observable.merge(Iterable<? extends ObservableSource<? extends T>> sources)
Flattens an Iterable of ObservableSources into one ObservableSource, without any transformation.
|
static <T> Observable<T> |
Observable.merge(Iterable<? extends ObservableSource<? extends T>> sources,
int maxConcurrency)
Flattens an Iterable of ObservableSources into one ObservableSource, without any transformation, while limiting the
number of concurrent subscriptions to these ObservableSources.
|
static <T> Observable<T> |
Observable.merge(Iterable<? extends ObservableSource<? extends T>> sources,
int maxConcurrency,
int bufferSize)
Flattens an Iterable of ObservableSources into one ObservableSource, without any transformation, while limiting the
number of concurrent subscriptions to these ObservableSources.
|
static <T> Observable<T> |
Observable.merge(ObservableSource<? extends ObservableSource<? extends T>> sources)
Flattens an ObservableSource that emits ObservableSources into a single ObservableSource that emits the items emitted by
those ObservableSources, without any transformation.
|
static <T> Observable<T> |
Observable.merge(ObservableSource<? extends ObservableSource<? extends T>> sources,
int maxConcurrency)
Flattens an ObservableSource that emits ObservableSources into a single ObservableSource that emits the items emitted by
those ObservableSources, without any transformation, while limiting the maximum number of concurrent
subscriptions to these ObservableSources.
|
static <T> Observable<T> |
Observable.merge(ObservableSource<? extends T> source1,
ObservableSource<? extends T> source2)
Flattens two ObservableSources into a single ObservableSource, without any transformation.
|
static <T> Observable<T> |
Observable.merge(ObservableSource<? extends T> source1,
ObservableSource<? extends T> source2,
ObservableSource<? extends T> source3)
Flattens three ObservableSources into a single ObservableSource, without any transformation.
|
static <T> Observable<T> |
Observable.merge(ObservableSource<? extends T> source1,
ObservableSource<? extends T> source2,
ObservableSource<? extends T> source3,
ObservableSource<? extends T> source4)
Flattens four ObservableSources into a single ObservableSource, without any transformation.
|
static <T> Observable<T> |
Observable.mergeArray(int maxConcurrency,
int bufferSize,
ObservableSource<? extends T>... sources)
Flattens an Iterable of ObservableSources into one ObservableSource, without any transformation, while limiting the
number of concurrent subscriptions to these ObservableSources.
|
static <T> Observable<T> |
Observable.mergeArray(ObservableSource<? extends T>... sources)
Flattens an Array of ObservableSources into one ObservableSource, without any transformation.
|
static <T> Observable<T> |
Observable.mergeArrayDelayError(int maxConcurrency,
int bufferSize,
ObservableSource<? extends T>... sources)
Flattens an array of ObservableSources into one ObservableSource, in a way that allows an Observer to receive all
successfully emitted items from each of the source ObservableSources without being interrupted by an error
notification from one of them, while limiting the number of concurrent subscriptions to these ObservableSources.
|
static <T> Observable<T> |
Observable.mergeArrayDelayError(ObservableSource<? extends T>... sources)
Flattens an Iterable of ObservableSources into one ObservableSource, in a way that allows an Observer to receive all
successfully emitted items from each of the source ObservableSources without being interrupted by an error
notification from one of them.
|
static <T> Observable<T> |
Observable.mergeDelayError(Iterable<? extends ObservableSource<? extends T>> sources)
Flattens an Iterable of ObservableSources into one ObservableSource, in a way that allows an Observer to receive all
successfully emitted items from each of the source ObservableSources without being interrupted by an error
notification from one of them.
|
static <T> Observable<T> |
Observable.mergeDelayError(Iterable<? extends ObservableSource<? extends T>> sources,
int maxConcurrency)
Flattens an Iterable of ObservableSources into one ObservableSource, in a way that allows an Observer to receive all
successfully emitted items from each of the source ObservableSources without being interrupted by an error
notification from one of them, while limiting the number of concurrent subscriptions to these ObservableSources.
|
static <T> Observable<T> |
Observable.mergeDelayError(Iterable<? extends ObservableSource<? extends T>> sources,
int maxConcurrency,
int bufferSize)
Flattens an Iterable of ObservableSources into one ObservableSource, in a way that allows an Observer to receive all
successfully emitted items from each of the source ObservableSources without being interrupted by an error
notification from one of them, while limiting the number of concurrent subscriptions to these ObservableSources.
|
static <T> Observable<T> |
Observable.mergeDelayError(ObservableSource<? extends ObservableSource<? extends T>> sources)
Flattens an ObservableSource that emits ObservableSources into one ObservableSource, in a way that allows an Observer to
receive all successfully emitted items from all of the source ObservableSources without being interrupted by
an error notification from one of them.
|
static <T> Observable<T> |
Observable.mergeDelayError(ObservableSource<? extends ObservableSource<? extends T>> sources,
int maxConcurrency)
Flattens an ObservableSource that emits ObservableSources into one ObservableSource, in a way that allows an Observer to
receive all successfully emitted items from all of the source ObservableSources without being interrupted by
an error notification from one of them, while limiting the
number of concurrent subscriptions to these ObservableSources.
|
static <T> Observable<T> |
Observable.mergeDelayError(ObservableSource<? extends T> source1,
ObservableSource<? extends T> source2)
Flattens two ObservableSources into one ObservableSource, in a way that allows an Observer to receive all
successfully emitted items from each of the source ObservableSources without being interrupted by an error
notification from one of them.
|
static <T> Observable<T> |
Observable.mergeDelayError(ObservableSource<? extends T> source1,
ObservableSource<? extends T> source2,
ObservableSource<? extends T> source3)
Flattens three ObservableSources into one ObservableSource, in a way that allows an Observer to receive all
successfully emitted items from all of the source ObservableSources without being interrupted by an error
notification from one of them.
|
static <T> Observable<T> |
Observable.mergeDelayError(ObservableSource<? extends T> source1,
ObservableSource<? extends T> source2,
ObservableSource<? extends T> source3,
ObservableSource<? extends T> source4)
Flattens four ObservableSources into one ObservableSource, in a way that allows an Observer to receive all
successfully emitted items from all of the source ObservableSources without being interrupted by an error
notification from one of them.
|
Observable<T> |
Observable.mergeWith(CompletableSource other)
Relays the items of this Observable and completes only when the other CompletableSource completes
as well.
|
Observable<T> |
Observable.mergeWith(MaybeSource<? extends T> other)
Merges the sequence of items of this Observable with the success value of the other MaybeSource
or waits both to complete normally if the MaybeSource is empty.
|
Observable<T> |
Observable.mergeWith(ObservableSource<? extends T> other)
Flattens this and another ObservableSource into a single ObservableSource, without any transformation.
|
Observable<T> |
Observable.mergeWith(SingleSource<? extends T> other)
Merges the sequence of items of this Observable with the success value of the other SingleSource.
|
static <T> Observable<T> |
Observable.never()
Returns an Observable that never sends any items or notifications to an
Observer . |
Observable<T> |
Observable.observeOn(Scheduler scheduler)
Modifies an ObservableSource to perform its emissions and notifications on a specified
Scheduler ,
asynchronously with an unbounded buffer with Flowable.bufferSize() "island size". |
Observable<T> |
Observable.observeOn(Scheduler scheduler,
boolean delayError)
Modifies an ObservableSource to perform its emissions and notifications on a specified
Scheduler ,
asynchronously with an unbounded buffer with Flowable.bufferSize() "island size" and optionally delays onError notifications. |
Observable<T> |
Observable.observeOn(Scheduler scheduler,
boolean delayError,
int bufferSize)
Modifies an ObservableSource to perform its emissions and notifications on a specified
Scheduler ,
asynchronously with an unbounded buffer of configurable "island size" and optionally delays onError notifications. |
<U> Observable<U> |
Observable.ofType(Class<U> clazz)
Filters the items emitted by an ObservableSource, only emitting those of the specified type.
|
Observable<T> |
Observable.onErrorResumeNext(Function<? super Throwable,? extends ObservableSource<? extends T>> resumeFunction)
Instructs an ObservableSource to pass control to another ObservableSource rather than invoking
onError if it encounters an error. |
Observable<T> |
Observable.onErrorResumeNext(ObservableSource<? extends T> next)
Instructs an ObservableSource to pass control to another ObservableSource rather than invoking
onError if it encounters an error. |
Observable<T> |
Observable.onErrorReturn(Function<? super Throwable,? extends T> valueSupplier)
Instructs an ObservableSource to emit an item (returned by a specified function) rather than invoking
onError if it encounters an error. |
Observable<T> |
Observable.onErrorReturnItem(T item)
Instructs an ObservableSource to emit an item (returned by a specified function) rather than invoking
onError if it encounters an error. |
Observable<T> |
Observable.onExceptionResumeNext(ObservableSource<? extends T> next)
|
Observable<T> |
Observable.onTerminateDetach()
Nulls out references to the upstream producer and downstream Observer if
the sequence is terminated or downstream calls dispose().
|
<R> Observable<R> |
Observable.publish(Function<? super Observable<T>,? extends ObservableSource<R>> selector)
Returns an Observable that emits the results of invoking a specified selector on items emitted by a
ConnectableObservable that shares a single subscription to the underlying sequence. |
static Observable<Integer> |
Observable.range(int start,
int count)
Returns an Observable that emits a sequence of Integers within a specified range.
|
static Observable<Long> |
Observable.rangeLong(long start,
long count)
Returns an Observable that emits a sequence of Longs within a specified range.
|
Observable<T> |
Observable.repeat()
Returns an Observable that repeats the sequence of items emitted by the source ObservableSource indefinitely.
|
Observable<T> |
Observable.repeat(long times)
Returns an Observable that repeats the sequence of items emitted by the source ObservableSource at most
count times. |
Observable<T> |
Observable.repeatUntil(BooleanSupplier stop)
Returns an Observable that repeats the sequence of items emitted by the source ObservableSource until
the provided stop function returns true.
|
Observable<T> |
Observable.repeatWhen(Function<? super Observable<Object>,? extends ObservableSource<?>> handler)
Returns an Observable that emits the same values as the source ObservableSource with the exception of an
onComplete . |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector)
Returns an Observable that emits items that are the results of invoking a specified selector on the items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource. |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
int bufferSize)
Returns an Observable that emits items that are the results of invoking a specified selector on items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource,
replaying bufferSize notifications. |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
int bufferSize,
long time,
TimeUnit unit)
Returns an Observable that emits items that are the results of invoking a specified selector on items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource,
replaying no more than bufferSize items that were emitted within a specified time window. |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
int bufferSize,
long time,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits items that are the results of invoking a specified selector on items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource,
replaying no more than bufferSize items that were emitted within a specified time window. |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
int bufferSize,
Scheduler scheduler)
Returns an Observable that emits items that are the results of invoking a specified selector on items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource,
replaying a maximum of bufferSize items. |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
long time,
TimeUnit unit)
Returns an Observable that emits items that are the results of invoking a specified selector on items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource,
replaying all items that were emitted within a specified time window. |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
long time,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits items that are the results of invoking a specified selector on items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource,
replaying all items that were emitted within a specified time window. |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
Scheduler scheduler)
Returns an Observable that emits items that are the results of invoking a specified selector on items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource. |
Observable<T> |
Observable.retry()
Returns an Observable that mirrors the source ObservableSource, resubscribing to it if it calls
onError
(infinite retry count). |
Observable<T> |
Observable.retry(BiPredicate<? super Integer,? super Throwable> predicate)
Returns an Observable that mirrors the source ObservableSource, resubscribing to it if it calls
onError
and the predicate returns true for that specific exception and retry count. |
Observable<T> |
Observable.retry(long times)
Returns an Observable that mirrors the source ObservableSource, resubscribing to it if it calls
onError
up to a specified number of retries. |
Observable<T> |
Observable.retry(long times,
Predicate<? super Throwable> predicate)
Retries at most times or until the predicate returns false, whichever happens first.
|
Observable<T> |
Observable.retry(Predicate<? super Throwable> predicate)
Retries the current Observable if the predicate returns true.
|
Observable<T> |
Observable.retryUntil(BooleanSupplier stop)
Retries until the given stop function returns true.
|
Observable<T> |
Observable.retryWhen(Function<? super Observable<Throwable>,? extends ObservableSource<?>> handler)
Returns an Observable that emits the same values as the source ObservableSource with the exception of an
onError . |
Observable<T> |
Observable.sample(long period,
TimeUnit unit)
Returns an Observable that emits the most recently emitted item (if any) emitted by the source ObservableSource
within periodic time intervals.
|
Observable<T> |
Observable.sample(long period,
TimeUnit unit,
boolean emitLast)
Returns an Observable that emits the most recently emitted item (if any) emitted by the source ObservableSource
within periodic time intervals and optionally emit the very last upstream item when the upstream completes.
|
Observable<T> |
Observable.sample(long period,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits the most recently emitted item (if any) emitted by the source ObservableSource
within periodic time intervals, where the intervals are defined on a particular Scheduler.
|
Observable<T> |
Observable.sample(long period,
TimeUnit unit,
Scheduler scheduler,
boolean emitLast)
Returns an Observable that emits the most recently emitted item (if any) emitted by the source ObservableSource
within periodic time intervals, where the intervals are defined on a particular Scheduler
and optionally emit the very last upstream item when the upstream completes.
|
<U> Observable<T> |
Observable.sample(ObservableSource<U> sampler)
Returns an Observable that, when the specified
sampler ObservableSource emits an item or completes,
emits the most recently emitted item (if any) emitted by the source ObservableSource since the previous
emission from the sampler ObservableSource. |
<U> Observable<T> |
Observable.sample(ObservableSource<U> sampler,
boolean emitLast)
Returns an Observable that, when the specified
sampler ObservableSource emits an item or completes,
emits the most recently emitted item (if any) emitted by the source ObservableSource since the previous
emission from the sampler ObservableSource
and optionally emit the very last upstream item when the upstream or other ObservableSource complete. |
Observable<T> |
Observable.scan(BiFunction<T,T,T> accumulator)
Returns an Observable that applies a specified accumulator function to the first item emitted by a source
ObservableSource, then feeds the result of that function along with the second item emitted by the source
ObservableSource into the same function, and so on until all items have been emitted by the source ObservableSource,
emitting the result of each of these iterations.
|
<R> Observable<R> |
Observable.scan(R initialValue,
BiFunction<R,? super T,R> accumulator)
Returns an Observable that applies a specified accumulator function to the first item emitted by a source
ObservableSource and a seed value, then feeds the result of that function along with the second item emitted by
the source ObservableSource into the same function, and so on until all items have been emitted by the source
ObservableSource, emitting the result of each of these iterations.
|
<R> Observable<R> |
Observable.scanWith(Callable<R> seedSupplier,
BiFunction<R,? super T,R> accumulator)
Returns an Observable that applies a specified accumulator function to the first item emitted by a source
ObservableSource and a seed value, then feeds the result of that function along with the second item emitted by
the source ObservableSource into the same function, and so on until all items have been emitted by the source
ObservableSource, emitting the result of each of these iterations.
|
Observable<T> |
Observable.serialize()
Forces an ObservableSource's emissions and notifications to be serialized and for it to obey
the ObservableSource contract in other ways.
|
Observable<T> |
Observable.share()
Returns a new
ObservableSource that multicasts (and shares a single subscription to) the original ObservableSource . |
Observable<T> |
Observable.skip(long count)
Returns an Observable that skips the first
count items emitted by the source ObservableSource and emits
the remainder. |
Observable<T> |
Observable.skip(long time,
TimeUnit unit)
Returns an Observable that skips values emitted by the source ObservableSource before a specified time window
elapses.
|
Observable<T> |
Observable.skip(long time,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that skips values emitted by the source ObservableSource before a specified time window
on a specified
Scheduler elapses. |
Observable<T> |
Observable.skipLast(int count)
Returns an Observable that drops a specified number of items from the end of the sequence emitted by the
source ObservableSource.
|
Observable<T> |
Observable.skipLast(long time,
TimeUnit unit)
Returns an Observable that drops items emitted by the source ObservableSource during a specified time window
before the source completes.
|
Observable<T> |
Observable.skipLast(long time,
TimeUnit unit,
boolean delayError)
Returns an Observable that drops items emitted by the source ObservableSource during a specified time window
before the source completes.
|
Observable<T> |
Observable.skipLast(long time,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that drops items emitted by the source ObservableSource during a specified time window
(defined on a specified scheduler) before the source completes.
|
Observable<T> |
Observable.skipLast(long time,
TimeUnit unit,
Scheduler scheduler,
boolean delayError)
Returns an Observable that drops items emitted by the source ObservableSource during a specified time window
(defined on a specified scheduler) before the source completes.
|
Observable<T> |
Observable.skipLast(long time,
TimeUnit unit,
Scheduler scheduler,
boolean delayError,
int bufferSize)
Returns an Observable that drops items emitted by the source ObservableSource during a specified time window
(defined on a specified scheduler) before the source completes.
|
<U> Observable<T> |
Observable.skipUntil(ObservableSource<U> other)
Returns an Observable that skips items emitted by the source ObservableSource until a second ObservableSource emits
an item.
|
Observable<T> |
Observable.skipWhile(Predicate<? super T> predicate)
Returns an Observable that skips all items emitted by the source ObservableSource as long as a specified
condition holds true, but emits all further source items as soon as the condition becomes false.
|
Observable<T> |
Observable.sorted()
Returns an Observable that emits the events emitted by source ObservableSource, in a
sorted order.
|
Observable<T> |
Observable.sorted(Comparator<? super T> sortFunction)
Returns an Observable that emits the events emitted by source ObservableSource, in a
sorted order based on a specified comparison function.
|
Observable<T> |
Observable.startWith(Iterable<? extends T> items)
Returns an Observable that emits the items in a specified
Iterable before it begins to emit items
emitted by the source ObservableSource. |
<T> Observable<T> |
Completable.startWith(Observable<T> other)
Returns an Observable which first delivers the events
of the other Observable then runs this CompletableConsumable.
|
Observable<T> |
Observable.startWith(ObservableSource<? extends T> other)
Returns an Observable that emits the items in a specified
ObservableSource before it begins to emit
items emitted by the source ObservableSource. |
Observable<T> |
Observable.startWith(T item)
Returns an Observable that emits a specified item before it begins to emit items emitted by the source
ObservableSource.
|
Observable<T> |
Observable.startWithArray(T... items)
Returns an Observable that emits the specified items before it begins to emit items emitted by the source
ObservableSource.
|
Observable<T> |
Observable.subscribeOn(Scheduler scheduler)
Asynchronously subscribes Observers to this ObservableSource on the specified
Scheduler . |
Observable<T> |
Observable.switchIfEmpty(ObservableSource<? extends T> other)
Returns an Observable that emits the items emitted by the source ObservableSource or the items of an alternate
ObservableSource if the source ObservableSource is empty.
|
<R> Observable<R> |
Observable.switchMap(Function<? super T,? extends ObservableSource<? extends R>> mapper)
Returns a new ObservableSource by applying a function that you supply to each item emitted by the source
ObservableSource that returns an ObservableSource, and then emitting the items emitted by the most recently emitted
of these ObservableSources.
|
<R> Observable<R> |
Observable.switchMap(Function<? super T,? extends ObservableSource<? extends R>> mapper,
int bufferSize)
Returns a new ObservableSource by applying a function that you supply to each item emitted by the source
ObservableSource that returns an ObservableSource, and then emitting the items emitted by the most recently emitted
of these ObservableSources.
|
<R> Observable<R> |
Observable.switchMapDelayError(Function<? super T,? extends ObservableSource<? extends R>> mapper)
Returns a new ObservableSource by applying a function that you supply to each item emitted by the source
ObservableSource that returns an ObservableSource, and then emitting the items emitted by the most recently emitted
of these ObservableSources and delays any error until all ObservableSources terminate.
|
<R> Observable<R> |
Observable.switchMapDelayError(Function<? super T,? extends ObservableSource<? extends R>> mapper,
int bufferSize)
Returns a new ObservableSource by applying a function that you supply to each item emitted by the source
ObservableSource that returns an ObservableSource, and then emitting the items emitted by the most recently emitted
of these ObservableSources and delays any error until all ObservableSources terminate.
|
<R> Observable<R> |
Observable.switchMapMaybe(Function<? super T,? extends MaybeSource<? extends R>> mapper)
Maps the upstream items into
MaybeSource s and switches (subscribes) to the newer ones
while disposing the older ones (and ignoring their signals) and emits the latest success value of the current one if
available while failing immediately if this Observable or any of the
active inner MaybeSource s fail. |
<R> Observable<R> |
Observable.switchMapMaybeDelayError(Function<? super T,? extends MaybeSource<? extends R>> mapper)
Maps the upstream items into
MaybeSource s and switches (subscribes) to the newer ones
while disposing the older ones (and ignoring their signals) and emits the latest success value of the current one if
available, delaying errors from this Observable or the inner MaybeSource s until all terminate. |
<R> Observable<R> |
Observable.switchMapSingle(Function<? super T,? extends SingleSource<? extends R>> mapper)
Returns a new ObservableSource by applying a function that you supply to each item emitted by the source
ObservableSource that returns a SingleSource, and then emitting the item emitted by the most recently emitted
of these SingleSources.
|
<R> Observable<R> |
Observable.switchMapSingleDelayError(Function<? super T,? extends SingleSource<? extends R>> mapper)
Returns a new ObservableSource by applying a function that you supply to each item emitted by the source
ObservableSource that returns a SingleSource, and then emitting the item emitted by the most recently emitted
of these SingleSources and delays any error until all SingleSources terminate.
|
static <T> Observable<T> |
Observable.switchOnNext(ObservableSource<? extends ObservableSource<? extends T>> sources)
Converts an ObservableSource that emits ObservableSources into an ObservableSource that emits the items emitted by the
most recently emitted of those ObservableSources.
|
static <T> Observable<T> |
Observable.switchOnNext(ObservableSource<? extends ObservableSource<? extends T>> sources,
int bufferSize)
Converts an ObservableSource that emits ObservableSources into an ObservableSource that emits the items emitted by the
most recently emitted of those ObservableSources.
|
static <T> Observable<T> |
Observable.switchOnNextDelayError(ObservableSource<? extends ObservableSource<? extends T>> sources)
Converts an ObservableSource that emits ObservableSources into an ObservableSource that emits the items emitted by the
most recently emitted of those ObservableSources and delays any exception until all ObservableSources terminate.
|
static <T> Observable<T> |
Observable.switchOnNextDelayError(ObservableSource<? extends ObservableSource<? extends T>> sources,
int prefetch)
Converts an ObservableSource that emits ObservableSources into an ObservableSource that emits the items emitted by the
most recently emitted of those ObservableSources and delays any exception until all ObservableSources terminate.
|
Observable<T> |
Observable.take(long count)
Returns an Observable that emits only the first
count items emitted by the source ObservableSource. |
Observable<T> |
Observable.take(long time,
TimeUnit unit)
Returns an Observable that emits those items emitted by source ObservableSource before a specified time runs
out.
|
Observable<T> |
Observable.take(long time,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits those items emitted by source ObservableSource before a specified time (on a
specified Scheduler) runs out.
|
Observable<T> |
Observable.takeLast(int count)
Returns an Observable that emits at most the last
count items emitted by the source ObservableSource. |
Observable<T> |
Observable.takeLast(long count,
long time,
TimeUnit unit)
Returns an Observable that emits at most a specified number of items from the source ObservableSource that were
emitted in a specified window of time before the ObservableSource completed.
|
Observable<T> |
Observable.takeLast(long count,
long time,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits at most a specified number of items from the source ObservableSource that were
emitted in a specified window of time before the ObservableSource completed, where the timing information is
provided by a given Scheduler.
|
Observable<T> |
Observable.takeLast(long count,
long time,
TimeUnit unit,
Scheduler scheduler,
boolean delayError,
int bufferSize)
Returns an Observable that emits at most a specified number of items from the source ObservableSource that were
emitted in a specified window of time before the ObservableSource completed, where the timing information is
provided by a given Scheduler.
|
Observable<T> |
Observable.takeLast(long time,
TimeUnit unit)
Returns an Observable that emits the items from the source ObservableSource that were emitted in a specified
window of time before the ObservableSource completed.
|
Observable<T> |
Observable.takeLast(long time,
TimeUnit unit,
boolean delayError)
Returns an Observable that emits the items from the source ObservableSource that were emitted in a specified
window of time before the ObservableSource completed.
|
Observable<T> |
Observable.takeLast(long time,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits the items from the source ObservableSource that were emitted in a specified
window of time before the ObservableSource completed, where the timing information is provided by a specified
Scheduler.
|
Observable<T> |
Observable.takeLast(long time,
TimeUnit unit,
Scheduler scheduler,
boolean delayError)
Returns an Observable that emits the items from the source ObservableSource that were emitted in a specified
window of time before the ObservableSource completed, where the timing information is provided by a specified
Scheduler.
|
Observable<T> |
Observable.takeLast(long time,
TimeUnit unit,
Scheduler scheduler,
boolean delayError,
int bufferSize)
Returns an Observable that emits the items from the source ObservableSource that were emitted in a specified
window of time before the ObservableSource completed, where the timing information is provided by a specified
Scheduler.
|
<U> Observable<T> |
Observable.takeUntil(ObservableSource<U> other)
Returns an Observable that emits the items emitted by the source Observable until a second ObservableSource
emits an item.
|
Observable<T> |
Observable.takeUntil(Predicate<? super T> stopPredicate)
Returns an Observable that emits items emitted by the source Observable, checks the specified predicate
for each item, and then completes when the condition is satisfied.
|
Observable<T> |
Observable.takeWhile(Predicate<? super T> predicate)
Returns an Observable that emits items emitted by the source ObservableSource so long as each item satisfied a
specified condition, and then completes as soon as this condition is not satisfied.
|
Observable<T> |
Observable.throttleFirst(long windowDuration,
TimeUnit unit)
Returns an Observable that emits only the first item emitted by the source ObservableSource during sequential
time windows of a specified duration.
|
Observable<T> |
Observable.throttleFirst(long skipDuration,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits only the first item emitted by the source ObservableSource during sequential
time windows of a specified duration, where the windows are managed by a specified Scheduler.
|
Observable<T> |
Observable.throttleLast(long intervalDuration,
TimeUnit unit)
Returns an Observable that emits only the last item emitted by the source ObservableSource during sequential
time windows of a specified duration.
|
Observable<T> |
Observable.throttleLast(long intervalDuration,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits only the last item emitted by the source ObservableSource during sequential
time windows of a specified duration, where the duration is governed by a specified Scheduler.
|
Observable<T> |
Observable.throttleLatest(long timeout,
TimeUnit unit)
Throttles items from the upstream
Observable by first emitting the next
item from upstream, then periodically emitting the latest item (if any) when
the specified timeout elapses between them. |
Observable<T> |
Observable.throttleLatest(long timeout,
TimeUnit unit,
boolean emitLast)
Throttles items from the upstream
Observable by first emitting the next
item from upstream, then periodically emitting the latest item (if any) when
the specified timeout elapses between them. |
Observable<T> |
Observable.throttleLatest(long timeout,
TimeUnit unit,
Scheduler scheduler)
Throttles items from the upstream
Observable by first emitting the next
item from upstream, then periodically emitting the latest item (if any) when
the specified timeout elapses between them. |
Observable<T> |
Observable.throttleLatest(long timeout,
TimeUnit unit,
Scheduler scheduler,
boolean emitLast)
Throttles items from the upstream
Observable by first emitting the next
item from upstream, then periodically emitting the latest item (if any) when
the specified timeout elapses between them. |
Observable<T> |
Observable.throttleWithTimeout(long timeout,
TimeUnit unit)
Returns an Observable that mirrors the source ObservableSource, except that it drops items emitted by the
source ObservableSource that are followed by newer items before a timeout value expires.
|
Observable<T> |
Observable.throttleWithTimeout(long timeout,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that mirrors the source ObservableSource, except that it drops items emitted by the
source ObservableSource that are followed by newer items before a timeout value expires on a specified
Scheduler.
|
Observable<Timed<T>> |
Observable.timeInterval()
Returns an Observable that emits records of the time interval between consecutive items emitted by the
source ObservableSource.
|
Observable<Timed<T>> |
Observable.timeInterval(Scheduler scheduler)
Returns an Observable that emits records of the time interval between consecutive items emitted by the
source ObservableSource, where this interval is computed on a specified Scheduler.
|
Observable<Timed<T>> |
Observable.timeInterval(TimeUnit unit)
Returns an Observable that emits records of the time interval between consecutive items emitted by the
source ObservableSource.
|
Observable<Timed<T>> |
Observable.timeInterval(TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits records of the time interval between consecutive items emitted by the
source ObservableSource, where this interval is computed on a specified Scheduler.
|
<V> Observable<T> |
Observable.timeout(Function<? super T,? extends ObservableSource<V>> itemTimeoutIndicator)
Returns an Observable that mirrors the source ObservableSource, but notifies observers of a
TimeoutException if an item emitted by the source ObservableSource doesn't arrive within a window of
time after the emission of the previous item, where that period of time is measured by an ObservableSource that
is a function of the previous item. |
<V> Observable<T> |
Observable.timeout(Function<? super T,? extends ObservableSource<V>> itemTimeoutIndicator,
ObservableSource<? extends T> other)
Returns an Observable that mirrors the source ObservableSource, but that switches to a fallback ObservableSource if
an item emitted by the source ObservableSource doesn't arrive within a window of time after the emission of the
previous item, where that period of time is measured by an ObservableSource that is a function of the previous
item.
|
Observable<T> |
Observable.timeout(long timeout,
TimeUnit timeUnit)
Returns an Observable that mirrors the source ObservableSource but applies a timeout policy for each emitted
item.
|
Observable<T> |
Observable.timeout(long timeout,
TimeUnit timeUnit,
ObservableSource<? extends T> other)
Returns an Observable that mirrors the source ObservableSource but applies a timeout policy for each emitted
item.
|
Observable<T> |
Observable.timeout(long timeout,
TimeUnit timeUnit,
Scheduler scheduler)
Returns an Observable that mirrors the source ObservableSource but applies a timeout policy for each emitted
item, where this policy is governed on a specified Scheduler.
|
Observable<T> |
Observable.timeout(long timeout,
TimeUnit timeUnit,
Scheduler scheduler,
ObservableSource<? extends T> other)
Returns an Observable that mirrors the source ObservableSource but applies a timeout policy for each emitted
item using a specified Scheduler.
|
<U,V> Observable<T> |
Observable.timeout(ObservableSource<U> firstTimeoutIndicator,
Function<? super T,? extends ObservableSource<V>> itemTimeoutIndicator)
Returns an Observable that mirrors the source ObservableSource, but notifies observers of a
TimeoutException if either the first item emitted by the source ObservableSource or any subsequent item
doesn't arrive within time windows defined by other ObservableSources. |
<U,V> Observable<T> |
Observable.timeout(ObservableSource<U> firstTimeoutIndicator,
Function<? super T,? extends ObservableSource<V>> itemTimeoutIndicator,
ObservableSource<? extends T> other)
Returns an Observable that mirrors the source ObservableSource, but switches to a fallback ObservableSource if either
the first item emitted by the source ObservableSource or any subsequent item doesn't arrive within time windows
defined by other ObservableSources.
|
static Observable<Long> |
Observable.timer(long delay,
TimeUnit unit)
Returns an Observable that emits
0L after a specified delay, and then completes. |
static Observable<Long> |
Observable.timer(long delay,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits
0L after a specified delay, on a specified Scheduler, and then
completes. |
Observable<Timed<T>> |
Observable.timestamp()
Returns an Observable that emits each item emitted by the source ObservableSource, wrapped in a
Timed object. |
Observable<Timed<T>> |
Observable.timestamp(Scheduler scheduler)
Returns an Observable that emits each item emitted by the source ObservableSource, wrapped in a
Timed object whose timestamps are provided by a specified Scheduler. |
Observable<Timed<T>> |
Observable.timestamp(TimeUnit unit)
Returns an Observable that emits each item emitted by the source ObservableSource, wrapped in a
Timed object. |
Observable<Timed<T>> |
Observable.timestamp(TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits each item emitted by the source ObservableSource, wrapped in a
Timed object whose timestamps are provided by a specified Scheduler. |
Observable<T> |
Single.toObservable()
Converts this Single into an
Observable . |
Observable<T> |
Maybe.toObservable()
Converts this Maybe into an Observable instance composing disposal
through.
|
Observable<T> |
Flowable.toObservable()
Converts the current Flowable into a non-backpressured
Observable . |
<T> Observable<T> |
Completable.toObservable()
Returns an Observable which when subscribed to subscribes to this Completable and
relays the terminal events to the subscriber.
|
static <T> Observable<T> |
Observable.unsafeCreate(ObservableSource<T> onSubscribe)
Create an Observable by wrapping an ObservableSource which has to be implemented according
to the Reactive-Streams-based Observable specification by handling
disposal correctly; no safeguards are provided by the Observable itself.
|
Observable<T> |
Observable.unsubscribeOn(Scheduler scheduler)
Modifies the source ObservableSource so that subscribers will dispose it on a specified
Scheduler . |
static <T,D> Observable<T> |
Observable.using(Callable<? extends D> resourceSupplier,
Function<? super D,? extends ObservableSource<? extends T>> sourceSupplier,
Consumer<? super D> disposer)
Constructs an ObservableSource that creates a dependent resource object which is disposed of when the downstream
calls dispose().
|
static <T,D> Observable<T> |
Observable.using(Callable<? extends D> resourceSupplier,
Function<? super D,? extends ObservableSource<? extends T>> sourceSupplier,
Consumer<? super D> disposer,
boolean eager)
Constructs an ObservableSource that creates a dependent resource object which is disposed of just before
termination if you have set
disposeEagerly to true and a dispose() call does not occur
before termination. |
<B> Observable<Observable<T>> |
Observable.window(Callable<? extends ObservableSource<B>> boundary)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
<B> Observable<Observable<T>> |
Observable.window(Callable<? extends ObservableSource<B>> boundary,
int bufferSize)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long count)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long count,
long skip)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long count,
long skip,
int bufferSize)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
long timeskip,
TimeUnit unit)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
long timeskip,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
long timeskip,
TimeUnit unit,
Scheduler scheduler,
int bufferSize)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
TimeUnit unit)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
TimeUnit unit,
long count)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
TimeUnit unit,
long count,
boolean restart)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
TimeUnit unit,
Scheduler scheduler,
long count)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
TimeUnit unit,
Scheduler scheduler,
long count,
boolean restart)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
TimeUnit unit,
Scheduler scheduler,
long count,
boolean restart,
int bufferSize)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
<B> Observable<Observable<T>> |
Observable.window(ObservableSource<B> boundary)
Returns an Observable that emits non-overlapping windows of items it collects from the source ObservableSource
where the boundary of each window is determined by the items emitted from a specified boundary-governing
ObservableSource.
|
<B> Observable<Observable<T>> |
Observable.window(ObservableSource<B> boundary,
int bufferSize)
Returns an Observable that emits non-overlapping windows of items it collects from the source ObservableSource
where the boundary of each window is determined by the items emitted from a specified boundary-governing
ObservableSource.
|
<U,V> Observable<Observable<T>> |
Observable.window(ObservableSource<U> openingIndicator,
Function<? super U,? extends ObservableSource<V>> closingIndicator)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
<U,V> Observable<Observable<T>> |
Observable.window(ObservableSource<U> openingIndicator,
Function<? super U,? extends ObservableSource<V>> closingIndicator,
int bufferSize)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
<R> Observable<R> |
Observable.withLatestFrom(Iterable<? extends ObservableSource<?>> others,
Function<? super Object[],R> combiner)
Combines the value emission from this ObservableSource with the latest emissions from the
other ObservableSources via a function to produce the output item.
|
<R> Observable<R> |
Observable.withLatestFrom(ObservableSource<?>[] others,
Function<? super Object[],R> combiner)
Combines the value emission from this ObservableSource with the latest emissions from the
other ObservableSources via a function to produce the output item.
|
<U,R> Observable<R> |
Observable.withLatestFrom(ObservableSource<? extends U> other,
BiFunction<? super T,? super U,? extends R> combiner)
Merges the specified ObservableSource into this ObservableSource sequence by using the
resultSelector
function only when the source ObservableSource (this instance) emits an item. |
<T1,T2,R> Observable<R> |
Observable.withLatestFrom(ObservableSource<T1> o1,
ObservableSource<T2> o2,
Function3<? super T,? super T1,? super T2,R> combiner)
Combines the value emission from this ObservableSource with the latest emissions from the
other ObservableSources via a function to produce the output item.
|
<T1,T2,T3,R> |
Observable.withLatestFrom(ObservableSource<T1> o1,
ObservableSource<T2> o2,
ObservableSource<T3> o3,
Function4<? super T,? super T1,? super T2,? super T3,R> combiner)
Combines the value emission from this ObservableSource with the latest emissions from the
other ObservableSources via a function to produce the output item.
|
<T1,T2,T3,T4,R> |
Observable.withLatestFrom(ObservableSource<T1> o1,
ObservableSource<T2> o2,
ObservableSource<T3> o3,
ObservableSource<T4> o4,
Function5<? super T,? super T1,? super T2,? super T3,? super T4,R> combiner)
Combines the value emission from this ObservableSource with the latest emissions from the
other ObservableSources via a function to produce the output item.
|
static <T> Observable<T> |
Observable.wrap(ObservableSource<T> source)
Wraps an ObservableSource into an Observable if not already an Observable.
|
static <T,R> Observable<R> |
Observable.zip(Iterable<? extends ObservableSource<? extends T>> sources,
Function<? super Object[],? extends R> zipper)
Returns an Observable that emits the results of a specified combiner function applied to combinations of
items emitted, in sequence, by an Iterable of other ObservableSources.
|
static <T,R> Observable<R> |
Observable.zip(ObservableSource<? extends ObservableSource<? extends T>> sources,
Function<? super Object[],? extends R> zipper)
Returns an Observable that emits the results of a specified combiner function applied to combinations of
n items emitted, in sequence, by the n ObservableSources emitted by a specified ObservableSource.
|
static <T1,T2,R> Observable<R> |
Observable.zip(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
BiFunction<? super T1,? super T2,? extends R> zipper)
Returns an Observable that emits the results of a specified combiner function applied to combinations of
two items emitted, in sequence, by two other ObservableSources.
|
static <T1,T2,R> Observable<R> |
Observable.zip(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
BiFunction<? super T1,? super T2,? extends R> zipper,
boolean delayError)
Returns an Observable that emits the results of a specified combiner function applied to combinations of
two items emitted, in sequence, by two other ObservableSources.
|
static <T1,T2,R> Observable<R> |
Observable.zip(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
BiFunction<? super T1,? super T2,? extends R> zipper,
boolean delayError,
int bufferSize)
Returns an Observable that emits the results of a specified combiner function applied to combinations of
two items emitted, in sequence, by two other ObservableSources.
|
static <T1,T2,T3,R> |
Observable.zip(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
ObservableSource<? extends T3> source3,
Function3<? super T1,? super T2,? super T3,? extends R> zipper)
Returns an Observable that emits the results of a specified combiner function applied to combinations of
three items emitted, in sequence, by three other ObservableSources.
|
static <T1,T2,T3,T4,R> |
Observable.zip(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
ObservableSource<? extends T3> source3,
ObservableSource<? extends T4> source4,
Function4<? super T1,? super T2,? super T3,? super T4,? extends R> zipper)
Returns an Observable that emits the results of a specified combiner function applied to combinations of
four items emitted, in sequence, by four other ObservableSources.
|
static <T1,T2,T3,T4,T5,R> |
Observable.zip(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
ObservableSource<? extends T3> source3,
ObservableSource<? extends T4> source4,
ObservableSource<? extends T5> source5,
Function5<? super T1,? super T2,? super T3,? super T4,? super T5,? extends R> zipper)
Returns an Observable that emits the results of a specified combiner function applied to combinations of
five items emitted, in sequence, by five other ObservableSources.
|
static <T1,T2,T3,T4,T5,T6,R> |
Observable.zip(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
ObservableSource<? extends T3> source3,
ObservableSource<? extends T4> source4,
ObservableSource<? extends T5> source5,
ObservableSource<? extends T6> source6,
Function6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? extends R> zipper)
Returns an Observable that emits the results of a specified combiner function applied to combinations of
six items emitted, in sequence, by six other ObservableSources.
|
static <T1,T2,T3,T4,T5,T6,T7,R> |
Observable.zip(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
ObservableSource<? extends T3> source3,
ObservableSource<? extends T4> source4,
ObservableSource<? extends T5> source5,
ObservableSource<? extends T6> source6,
ObservableSource<? extends T7> source7,
Function7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? extends R> zipper)
Returns an Observable that emits the results of a specified combiner function applied to combinations of
seven items emitted, in sequence, by seven other ObservableSources.
|
static <T1,T2,T3,T4,T5,T6,T7,T8,R> |
Observable.zip(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
ObservableSource<? extends T3> source3,
ObservableSource<? extends T4> source4,
ObservableSource<? extends T5> source5,
ObservableSource<? extends T6> source6,
ObservableSource<? extends T7> source7,
ObservableSource<? extends T8> source8,
Function8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? extends R> zipper)
Returns an Observable that emits the results of a specified combiner function applied to combinations of
eight items emitted, in sequence, by eight other ObservableSources.
|
static <T1,T2,T3,T4,T5,T6,T7,T8,T9,R> |
Observable.zip(ObservableSource<? extends T1> source1,
ObservableSource<? extends T2> source2,
ObservableSource<? extends T3> source3,
ObservableSource<? extends T4> source4,
ObservableSource<? extends T5> source5,
ObservableSource<? extends T6> source6,
ObservableSource<? extends T7> source7,
ObservableSource<? extends T8> source8,
ObservableSource<? extends T9> source9,
Function9<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? super T9,? extends R> zipper)
Returns an Observable that emits the results of a specified combiner function applied to combinations of
nine items emitted, in sequence, by nine other ObservableSources.
|
static <T,R> Observable<R> |
Observable.zipArray(Function<? super Object[],? extends R> zipper,
boolean delayError,
int bufferSize,
ObservableSource<? extends T>... sources)
Returns an Observable that emits the results of a specified combiner function applied to combinations of
items emitted, in sequence, by an array of other ObservableSources.
|
static <T,R> Observable<R> |
Observable.zipIterable(Iterable<? extends ObservableSource<? extends T>> sources,
Function<? super Object[],? extends R> zipper,
boolean delayError,
int bufferSize)
Returns an Observable that emits the results of a specified combiner function applied to combinations of
items emitted, in sequence, by an Iterable of other ObservableSources.
|
<U,R> Observable<R> |
Observable.zipWith(Iterable<U> other,
BiFunction<? super T,? super U,? extends R> zipper)
Returns an Observable that emits items that are the result of applying a specified function to pairs of
values, one each from the source ObservableSource and a specified Iterable sequence.
|
<U,R> Observable<R> |
Observable.zipWith(ObservableSource<? extends U> other,
BiFunction<? super T,? super U,? extends R> zipper)
Returns an Observable that emits items that are the result of applying a specified function to pairs of
values, one each from the source ObservableSource and another specified ObservableSource.
|
<U,R> Observable<R> |
Observable.zipWith(ObservableSource<? extends U> other,
BiFunction<? super T,? super U,? extends R> zipper,
boolean delayError)
Returns an Observable that emits items that are the result of applying a specified function to pairs of
values, one each from the source ObservableSource and another specified ObservableSource.
|
<U,R> Observable<R> |
Observable.zipWith(ObservableSource<? extends U> other,
BiFunction<? super T,? super U,? extends R> zipper,
boolean delayError,
int bufferSize)
Returns an Observable that emits items that are the result of applying a specified function to pairs of
values, one each from the source ObservableSource and another specified ObservableSource.
|
Modifier and Type | Method and Description |
---|---|
<B> Observable<Observable<T>> |
Observable.window(Callable<? extends ObservableSource<B>> boundary)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
<B> Observable<Observable<T>> |
Observable.window(Callable<? extends ObservableSource<B>> boundary,
int bufferSize)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long count)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long count,
long skip)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long count,
long skip,
int bufferSize)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
long timeskip,
TimeUnit unit)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
long timeskip,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
long timeskip,
TimeUnit unit,
Scheduler scheduler,
int bufferSize)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
TimeUnit unit)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
TimeUnit unit,
long count)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
TimeUnit unit,
long count,
boolean restart)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
TimeUnit unit,
Scheduler scheduler,
long count)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
TimeUnit unit,
Scheduler scheduler,
long count,
boolean restart)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Observable<Observable<T>> |
Observable.window(long timespan,
TimeUnit unit,
Scheduler scheduler,
long count,
boolean restart,
int bufferSize)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
<B> Observable<Observable<T>> |
Observable.window(ObservableSource<B> boundary)
Returns an Observable that emits non-overlapping windows of items it collects from the source ObservableSource
where the boundary of each window is determined by the items emitted from a specified boundary-governing
ObservableSource.
|
<B> Observable<Observable<T>> |
Observable.window(ObservableSource<B> boundary,
int bufferSize)
Returns an Observable that emits non-overlapping windows of items it collects from the source ObservableSource
where the boundary of each window is determined by the items emitted from a specified boundary-governing
ObservableSource.
|
<U,V> Observable<Observable<T>> |
Observable.window(ObservableSource<U> openingIndicator,
Function<? super U,? extends ObservableSource<V>> closingIndicator)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
<U,V> Observable<Observable<T>> |
Observable.window(ObservableSource<U> openingIndicator,
Function<? super U,? extends ObservableSource<V>> closingIndicator,
int bufferSize)
Returns an Observable that emits windows of items it collects from the source ObservableSource.
|
Modifier and Type | Method and Description |
---|---|
R |
ObservableConverter.apply(Observable<T> upstream)
Applies a function to the upstream Observable and returns a converted value of type
R . |
ObservableSource<Downstream> |
ObservableTransformer.apply(Observable<Upstream> upstream)
Applies a function to the upstream Observable and returns an ObservableSource with
optionally different element type.
|
<T> Observable<T> |
Completable.startWith(Observable<T> other)
Returns an Observable which first delivers the events
of the other Observable then runs this CompletableConsumable.
|
Modifier and Type | Method and Description |
---|---|
<TRight,TLeftEnd,TRightEnd,R> |
Observable.groupJoin(ObservableSource<? extends TRight> other,
Function<? super T,? extends ObservableSource<TLeftEnd>> leftEnd,
Function<? super TRight,? extends ObservableSource<TRightEnd>> rightEnd,
BiFunction<? super T,? super Observable<TRight>,? extends R> resultSelector)
Returns an Observable that correlates two ObservableSources when they overlap in time and groups the results.
|
<R> Observable<R> |
Observable.publish(Function<? super Observable<T>,? extends ObservableSource<R>> selector)
Returns an Observable that emits the results of invoking a specified selector on items emitted by a
ConnectableObservable that shares a single subscription to the underlying sequence. |
Observable<T> |
Observable.repeatWhen(Function<? super Observable<Object>,? extends ObservableSource<?>> handler)
Returns an Observable that emits the same values as the source ObservableSource with the exception of an
onComplete . |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector)
Returns an Observable that emits items that are the results of invoking a specified selector on the items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource. |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
int bufferSize)
Returns an Observable that emits items that are the results of invoking a specified selector on items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource,
replaying bufferSize notifications. |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
int bufferSize,
long time,
TimeUnit unit)
Returns an Observable that emits items that are the results of invoking a specified selector on items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource,
replaying no more than bufferSize items that were emitted within a specified time window. |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
int bufferSize,
long time,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits items that are the results of invoking a specified selector on items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource,
replaying no more than bufferSize items that were emitted within a specified time window. |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
int bufferSize,
Scheduler scheduler)
Returns an Observable that emits items that are the results of invoking a specified selector on items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource,
replaying a maximum of bufferSize items. |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
long time,
TimeUnit unit)
Returns an Observable that emits items that are the results of invoking a specified selector on items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource,
replaying all items that were emitted within a specified time window. |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
long time,
TimeUnit unit,
Scheduler scheduler)
Returns an Observable that emits items that are the results of invoking a specified selector on items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource,
replaying all items that were emitted within a specified time window. |
<R> Observable<R> |
Observable.replay(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
Scheduler scheduler)
Returns an Observable that emits items that are the results of invoking a specified selector on items
emitted by a
ConnectableObservable that shares a single subscription to the source ObservableSource. |
Observable<T> |
Observable.retryWhen(Function<? super Observable<Throwable>,? extends ObservableSource<?>> handler)
Returns an Observable that emits the same values as the source ObservableSource with the exception of an
onError . |
<R> R |
Observable.to(Function<? super Observable<T>,R> converter)
Calls the specified converter function during assembly time and returns its resulting value.
|
Modifier and Type | Method and Description |
---|---|
Observable<T> |
FuseToObservable.fuseToObservable()
Returns a (direct) Observable for the operator.
|
Modifier and Type | Class and Description |
---|---|
class |
CompletableToObservable<T>
Wraps a Completable and exposes it as an Observable.
|
Constructor and Description |
---|
FlowableFromObservable(Observable<T> upstream) |
Modifier and Type | Class and Description |
---|---|
class |
MaybeFlatMapIterableObservable<T,R>
Maps a success value into an Iterable and streams it back as a Flowable.
|
class |
MaybeToObservable<T>
Wraps a MaybeSource and exposes it as an Observable, relaying signals in a backpressure-aware manner
and composes cancellation through.
|
Modifier and Type | Class and Description |
---|---|
class |
CompletableAndThenObservable<R>
After Completable completes, it relays the signals
of the ObservableSource to the downstream observer.
|
class |
MaybeFlatMapObservable<T,R>
Maps the success value of a Maybe onto an ObservableSource and
relays its signals to the downstream observer.
|
class |
ObservableConcatMapMaybe<T,R>
Maps each upstream item into a
MaybeSource , subscribes to them one after the other terminates
and relays their success values, optionally delaying any errors till the main and inner sources
terminate. |
class |
ObservableConcatMapSingle<T,R>
Maps each upstream item into a
SingleSource , subscribes to them one after the other terminates
and relays their success values, optionally delaying any errors till the main and inner sources
terminate. |
class |
ObservableSwitchMapMaybe<T,R>
Maps the upstream items into
MaybeSource s and switches (subscribes) to the newer ones
while disposing the older ones and emits the latest success value if available, optionally delaying
errors from the main source or the inner sources. |
class |
ObservableSwitchMapSingle<T,R>
Maps the upstream items into
SingleSource s and switches (subscribes) to the newer ones
while disposing the older ones and emits the latest success value if available, optionally delaying
errors from the main source or the inner sources. |
class |
SingleFlatMapObservable<T,R>
Maps the success value of a Single onto an ObservableSource and
relays its signals to the downstream observer.
|
Constructor and Description |
---|
ObservableConcatMapCompletable(Observable<T> source,
Function<? super T,? extends CompletableSource> mapper,
ErrorMode errorMode,
int prefetch) |
ObservableConcatMapMaybe(Observable<T> source,
Function<? super T,? extends MaybeSource<? extends R>> mapper,
ErrorMode errorMode,
int prefetch) |
ObservableConcatMapSingle(Observable<T> source,
Function<? super T,? extends SingleSource<? extends R>> mapper,
ErrorMode errorMode,
int prefetch) |
ObservableSwitchMapCompletable(Observable<T> source,
Function<? super T,? extends CompletableSource> mapper,
boolean delayErrors) |
ObservableSwitchMapMaybe(Observable<T> source,
Function<? super T,? extends MaybeSource<? extends R>> mapper,
boolean delayErrors) |
ObservableSwitchMapSingle(Observable<T> source,
Function<? super T,? extends SingleSource<? extends R>> mapper,
boolean delayErrors) |
Modifier and Type | Class and Description |
---|---|
class |
ObservableAll<T> |
class |
ObservableAmb<T> |
class |
ObservableAny<T> |
class |
ObservableAutoConnect<T>
Wraps a ConnectableObservable and calls its connect() method once
the specified number of Observers have subscribed.
|
class |
ObservableBuffer<T,U extends Collection<? super T>> |
class |
ObservableBufferBoundary<T,U extends Collection<? super T>,Open,Close> |
class |
ObservableBufferBoundarySupplier<T,U extends Collection<? super T>,B> |
class |
ObservableBufferExactBoundary<T,U extends Collection<? super T>,B> |
class |
ObservableBufferTimed<T,U extends Collection<? super T>> |
class |
ObservableCache<T>
An observable which auto-connects to another observable, caches the elements
from that observable but allows terminating the connection and completing the cache.
|
class |
ObservableCollect<T,U> |
class |
ObservableCombineLatest<T,R> |
class |
ObservableConcatMap<T,U> |
class |
ObservableConcatMapEager<T,R> |
class |
ObservableConcatWithCompletable<T>
Subscribe to a main Observable first, then when it completes normally, subscribe to a Single,
signal its success value followed by a completion or signal its error as is.
|
class |
ObservableConcatWithMaybe<T>
Subscribe to a main Observable first, then when it completes normally, subscribe to a Maybe,
signal its success value followed by a completion or signal its error or completion signal as is.
|
class |
ObservableConcatWithSingle<T>
Subscribe to a main Observable first, then when it completes normally, subscribe to a Single,
signal its success value followed by a completion or signal its error as is.
|
class |
ObservableCount<T> |
class |
ObservableCreate<T> |
class |
ObservableDebounce<T,U> |
class |
ObservableDebounceTimed<T> |
class |
ObservableDefer<T> |
class |
ObservableDelay<T> |
class |
ObservableDelaySubscriptionOther<T,U>
Delays the subscription to the main source until the other
observable fires an event or completes.
|
class |
ObservableDematerialize<T,R> |
class |
ObservableDetach<T>
Breaks the links between the upstream and the downstream (the Disposable and
the Observer references) when the sequence terminates or gets disposed.
|
class |
ObservableDistinct<T,K> |
class |
ObservableDistinctUntilChanged<T,K> |
class |
ObservableDoAfterNext<T>
Calls a consumer after pushing the current item to the downstream.
|
class |
ObservableDoFinally<T>
Execute an action after an onError, onComplete or a dispose event.
|
class |
ObservableDoOnEach<T> |
class |
ObservableDoOnLifecycle<T> |
class |
ObservableElementAt<T> |
class |
ObservableEmpty |
class |
ObservableError<T> |
class |
ObservableFilter<T> |
class |
ObservableFlatMap<T,U> |
class |
ObservableFlatMapCompletable<T>
Maps a sequence of values into CompletableSources and awaits their termination.
|
class |
ObservableFlatMapMaybe<T,R>
Maps upstream values into MaybeSources and merges their signals into one sequence.
|
class |
ObservableFlatMapSingle<T,R>
Maps upstream values into SingleSources and merges their signals into one sequence.
|
class |
ObservableFlattenIterable<T,R>
Maps a sequence into an Iterable and emits its values.
|
class |
ObservableFromArray<T> |
class |
ObservableFromCallable<T>
Calls a Callable and emits its resulting single value or signals its exception.
|
class |
ObservableFromFuture<T> |
class |
ObservableFromIterable<T> |
class |
ObservableFromPublisher<T> |
class |
ObservableFromUnsafeSource<T> |
class |
ObservableGenerate<T,S> |
class |
ObservableGroupBy<T,K,V> |
class |
ObservableGroupJoin<TLeft,TRight,TLeftEnd,TRightEnd,R> |
class |
ObservableHide<T>
Hides the identity of the wrapped ObservableSource and its Disposable.
|
class |
ObservableIgnoreElements<T> |
class |
ObservableInterval |
class |
ObservableIntervalRange |
class |
ObservableJoin<TLeft,TRight,TLeftEnd,TRightEnd,R> |
class |
ObservableJust<T>
Represents a constant scalar value.
|
class |
ObservableLift<R,T>
Allows lifting operators into a chain of Observables.
|
class |
ObservableMap<T,U> |
class |
ObservableMapNotification<T,R> |
class |
ObservableMaterialize<T> |
class |
ObservableMergeWithCompletable<T>
Merges an Observable and a Completable by emitting the items of the Observable and waiting until
both the Observable and Completable complete normally.
|
class |
ObservableMergeWithMaybe<T>
Merges an Observable and a Maybe by emitting the items of the Observable and the success
value of the Maybe and waiting until both the Observable and Maybe terminate normally.
|
class |
ObservableMergeWithSingle<T>
Merges an Observable and a Single by emitting the items of the Observable and the success
value of the Single and waiting until both the Observable and Single terminate normally.
|
class |
ObservableNever |
class |
ObservableObserveOn<T> |
class |
ObservableOnErrorNext<T> |
class |
ObservableOnErrorReturn<T> |
class |
ObservablePublish<T>
A connectable observable which shares an underlying source and dispatches source values to observers in a backpressure-aware
manner.
|
class |
ObservablePublishSelector<T,R>
Shares a source Observable for the duration of a selector function.
|
class |
ObservableRange
Emits a range of integer values from start to end.
|
class |
ObservableRangeLong |
class |
ObservableRefCount<T>
Returns an observable sequence that stays connected to the source as long as
there is at least one subscription to the observable sequence.
|
class |
ObservableRepeat<T> |
class |
ObservableRepeatUntil<T> |
class |
ObservableRepeatWhen<T>
Repeatedly subscribe to a source if a handler ObservableSource signals an item.
|
class |
ObservableReplay<T> |
class |
ObservableRetryBiPredicate<T> |
class |
ObservableRetryPredicate<T> |
class |
ObservableRetryWhen<T>
Repeatedly subscribe to a source if a handler ObservableSource signals an item.
|
class |
ObservableSampleTimed<T> |
class |
ObservableSampleWithObservable<T> |
class |
ObservableScan<T> |
class |
ObservableScanSeed<T,R> |
class |
ObservableSequenceEqual<T> |
class |
ObservableSerialized<T> |
class |
ObservableSkip<T> |
class |
ObservableSkipLast<T> |
class |
ObservableSkipLastTimed<T> |
class |
ObservableSkipUntil<T,U> |
class |
ObservableSkipWhile<T> |
class |
ObservableSubscribeOn<T> |
class |
ObservableSwitchIfEmpty<T> |
class |
ObservableSwitchMap<T,R> |
class |
ObservableTake<T> |
class |
ObservableTakeLast<T> |
class |
ObservableTakeLastOne<T> |
class |
ObservableTakeLastTimed<T> |
class |
ObservableTakeUntil<T,U> |
class |
ObservableTakeUntilPredicate<T> |
class |
ObservableTakeWhile<T> |
class |
ObservableThrottleFirstTimed<T> |
class |
ObservableThrottleLatest<T>
Emits the next or latest item when the given time elapses.
|
class |
ObservableTimeInterval<T> |
class |
ObservableTimeout<T,U,V> |
class |
ObservableTimeoutTimed<T> |
class |
ObservableTimer |
class |
ObservableToList<T,U extends Collection<? super T>> |
class |
ObservableUnsubscribeOn<T> |
class |
ObservableUsing<T,D> |
class |
ObservableWindow<T> |
class |
ObservableWindowBoundary<T,B> |
class |
ObservableWindowBoundarySelector<T,B,V> |
class |
ObservableWindowBoundarySupplier<T,B> |
class |
ObservableWindowTimed<T> |
class |
ObservableWithLatestFrom<T,U,R> |
class |
ObservableWithLatestFromMany<T,R>
Combines a main sequence of values with the latest from multiple other sequences via
a selector function.
|
class |
ObservableZip<T,R> |
class |
ObservableZipIterable<T,U,V> |
Modifier and Type | Field and Description |
---|---|
static Observable<Object> |
ObservableNever.INSTANCE |
static Observable<Object> |
ObservableEmpty.INSTANCE |
Modifier and Type | Method and Description |
---|---|
Observable<U> |
ObservableToListSingle.fuseToObservable() |
Observable<Boolean> |
ObservableSequenceEqualSingle.fuseToObservable() |
Observable<T> |
ObservableIgnoreElementsCompletable.fuseToObservable() |
Observable<T> |
ObservableFlatMapCompletableCompletable.fuseToObservable() |
Observable<T> |
ObservableElementAtSingle.fuseToObservable() |
Observable<T> |
ObservableElementAtMaybe.fuseToObservable() |
Observable<Long> |
ObservableCountSingle.fuseToObservable() |
Observable<U> |
ObservableCollectSingle.fuseToObservable() |
Observable<Boolean> |
ObservableAnySingle.fuseToObservable() |
Observable<Boolean> |
ObservableAllSingle.fuseToObservable() |
static <U,R> Observable<R> |
ObservableReplay.multicastSelector(Callable<? extends ConnectableObservable<U>> connectableFactory,
Function<? super Observable<U>,? extends ObservableSource<R>> selector)
Given a connectable observable factory, it multicasts over the generated
ConnectableObservable via a selector function.
|
static <T,U> Observable<U> |
ObservableScalarXMap.scalarXMap(T value,
Function<? super T,? extends ObservableSource<? extends U>> mapper)
Maps a scalar value into an Observable and emits its values.
|
Modifier and Type | Method and Description |
---|---|
static <T,R> Function<Observable<T>,ObservableSource<R>> |
ObservableInternalHelper.replayFunction(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
Scheduler scheduler) |
Modifier and Type | Method and Description |
---|---|
static <T> Callable<ConnectableObservable<T>> |
ObservableInternalHelper.replayCallable(Observable<T> parent) |
static <T> Callable<ConnectableObservable<T>> |
ObservableInternalHelper.replayCallable(Observable<T> parent,
int bufferSize) |
static <T> Callable<ConnectableObservable<T>> |
ObservableInternalHelper.replayCallable(Observable<T> parent,
int bufferSize,
long time,
TimeUnit unit,
Scheduler scheduler) |
static <T> Callable<ConnectableObservable<T>> |
ObservableInternalHelper.replayCallable(Observable<T> parent,
long time,
TimeUnit unit,
Scheduler scheduler) |
Modifier and Type | Method and Description |
---|---|
static <U,R> Observable<R> |
ObservableReplay.multicastSelector(Callable<? extends ConnectableObservable<U>> connectableFactory,
Function<? super Observable<U>,? extends ObservableSource<R>> selector)
Given a connectable observable factory, it multicasts over the generated
ConnectableObservable via a selector function.
|
static <T,R> Function<Observable<T>,ObservableSource<R>> |
ObservableInternalHelper.replayFunction(Function<? super Observable<T>,? extends ObservableSource<R>> selector,
Scheduler scheduler) |
void |
ObservableWindowTimed.subscribeActual(Observer<? super Observable<T>> t) |
void |
ObservableWindowBoundarySupplier.subscribeActual(Observer<? super Observable<T>> observer) |
void |
ObservableWindowBoundarySelector.subscribeActual(Observer<? super Observable<T>> t) |
void |
ObservableWindowBoundary.subscribeActual(Observer<? super Observable<T>> observer) |
void |
ObservableWindow.subscribeActual(Observer<? super Observable<T>> t) |
Constructor and Description |
---|
ObservableGroupJoin(ObservableSource<TLeft> source,
ObservableSource<? extends TRight> other,
Function<? super TLeft,? extends ObservableSource<TLeftEnd>> leftEnd,
Function<? super TRight,? extends ObservableSource<TRightEnd>> rightEnd,
BiFunction<? super TLeft,? super Observable<TRight>,? extends R> resultSelector) |
ObservablePublishSelector(ObservableSource<T> source,
Function<? super Observable<T>,? extends ObservableSource<R>> selector) |
ObservableRepeatWhen(ObservableSource<T> source,
Function<? super Observable<Object>,? extends ObservableSource<?>> handler) |
ObservableRetryWhen(ObservableSource<T> source,
Function<? super Observable<Throwable>,? extends ObservableSource<?>> handler) |
Modifier and Type | Class and Description |
---|---|
class |
SingleFlatMapIterableObservable<T,R>
Maps a success value into an Iterable and streams it back as an Observable.
|
class |
SingleToObservable<T>
Wraps a Single and exposes it as an Observable.
|
Modifier and Type | Method and Description |
---|---|
static <T> Function<SingleSource<? extends T>,Observable<? extends T>> |
SingleInternalHelper.toObservable() |
Modifier and Type | Class and Description |
---|---|
class |
ConnectableObservable<T>
A
ConnectableObservable resembles an ordinary Observable , except that it does not begin
emitting items when it is subscribed to, but only when its ConnectableObservable.connect(io.reactivex.functions.Consumer<? super io.reactivex.disposables.Disposable>) method is called. |
class |
GroupedObservable<K,T>
An
Observable that has been grouped by key, the value of which can be obtained with GroupedObservable.getKey() . |
Modifier and Type | Method and Description |
---|---|
Observable<T> |
ConnectableObservable.autoConnect()
Returns an Observable that automatically connects (at most once) to this ConnectableObservable
when the first Observer subscribes.
|
Observable<T> |
ConnectableObservable.autoConnect(int numberOfSubscribers)
Returns an Observable that automatically connects (at most once) to this ConnectableObservable
when the specified number of Observers subscribe to it.
|
Observable<T> |
ConnectableObservable.autoConnect(int numberOfSubscribers,
Consumer<? super Disposable> connection)
Returns an Observable that automatically connects (at most once) to this ConnectableObservable
when the specified number of Subscribers subscribe to it and calls the
specified callback with the Subscription associated with the established connection.
|
Observable<T> |
ConnectableObservable.refCount()
Returns an
Observable that stays connected to this ConnectableObservable as long as there
is at least one subscription to this ConnectableObservable . |
Observable<T> |
ConnectableObservable.refCount(int subscriberCount)
Connects to the upstream
ConnectableObservable if the number of subscribed
subscriber reaches the specified count and disconnect if all subscribers have unsubscribed. |
Observable<T> |
ConnectableObservable.refCount(int subscriberCount,
long timeout,
TimeUnit unit)
Connects to the upstream
ConnectableObservable if the number of subscribed
subscriber reaches the specified count and disconnect after the specified
timeout if all subscribers have unsubscribed. |
Observable<T> |
ConnectableObservable.refCount(int subscriberCount,
long timeout,
TimeUnit unit,
Scheduler scheduler)
Connects to the upstream
ConnectableObservable if the number of subscribed
subscriber reaches the specified count and disconnect after the specified
timeout if all subscribers have unsubscribed. |
Observable<T> |
ConnectableObservable.refCount(long timeout,
TimeUnit unit)
Connects to the upstream
ConnectableObservable if the number of subscribed
subscriber reaches 1 and disconnect after the specified
timeout if all subscribers have unsubscribed. |
Observable<T> |
ConnectableObservable.refCount(long timeout,
TimeUnit unit,
Scheduler scheduler)
Connects to the upstream
ConnectableObservable if the number of subscribed
subscriber reaches 1 and disconnect after the specified
timeout if all subscribers have unsubscribed. |
Modifier and Type | Method and Description |
---|---|
static <T> Observable<T> |
RxJavaPlugins.onAssembly(Observable<T> source)
Calls the associated hook function.
|
Modifier and Type | Method and Description |
---|---|
static Function<? super Observable,? extends Observable> |
RxJavaPlugins.getOnObservableAssembly()
Returns the current hook function.
|
static Function<? super Observable,? extends Observable> |
RxJavaPlugins.getOnObservableAssembly()
Returns the current hook function.
|
static BiFunction<? super Observable,? super Observer,? extends Observer> |
RxJavaPlugins.getOnObservableSubscribe()
Returns the current hook function.
|
Modifier and Type | Method and Description |
---|---|
static <T> Observable<T> |
RxJavaPlugins.onAssembly(Observable<T> source)
Calls the associated hook function.
|
static <T> Observer<? super T> |
RxJavaPlugins.onSubscribe(Observable<T> source,
Observer<? super T> observer)
Calls the associated hook function.
|
Modifier and Type | Method and Description |
---|---|
static void |
RxJavaPlugins.setOnObservableAssembly(Function<? super Observable,? extends Observable> onObservableAssembly)
Sets the specific hook function.
|
static void |
RxJavaPlugins.setOnObservableAssembly(Function<? super Observable,? extends Observable> onObservableAssembly)
Sets the specific hook function.
|
static void |
RxJavaPlugins.setOnObservableSubscribe(BiFunction<? super Observable,? super Observer,? extends Observer> onObservableSubscribe)
Sets the specific hook function.
|
Modifier and Type | Class and Description |
---|---|
class |
AsyncSubject<T>
A Subject that emits the very last value followed by a completion event or the received error to Observers.
|
class |
BehaviorSubject<T>
Subject that emits the most recent item it has observed and all subsequent observed items to each subscribed
Observer . |
class |
PublishSubject<T>
A Subject that emits (multicasts) items to currently subscribed
Observer s and terminal events to current
or late Observer s. |
class |
ReplaySubject<T>
Replays events (in a configurable bounded or unbounded manner) to current and late
Observer s. |
class |
Subject<T>
Represents an
Observer and an Observable at the same time, allowing
multicasting events from a single source to multiple child Observer s. |
class |
UnicastSubject<T>
A Subject that queues up events until a single
Observer subscribes to it, replays
those events to it until the Observer catches up and then switches to relaying events live to
this single Observer until this UnicastSubject terminates or the Observer unsubscribes. |
Copyright © 2019. All rights reserved.