| Package | Description |
|---|---|
| rx |
Rx Observables
|
| rx.internal.operators |
Operators that allow composing Observables to transform and manipulate data in an asynchronous, functional and thread-safe manner.
|
| rx.plugins | |
| rx.schedulers |
Rx Schedulers
|
| rx.subjects |
| Modifier and Type | Method and Description |
|---|---|
Observable |
Observable.buffer(long timespan, long timeshift, TimeUnit
Returns an Observable that emits buffers of items it collects from the source Observable.
|
Observable |
Observable.buffer(long timespan, TimeUnit
Returns an Observable that emits buffers of items it collects from the source Observable.
|
Observable |
Observable.buffer(long timespan, TimeUnit
Returns an Observable that emits buffers of items it collects from the source Observable.
|
Observable |
Observable.debounce(long timeout, TimeUnit
Returns an Observable that mirrors the source Observable, except that it drops items emitted by the source Observable that are followed by newer items before a timeout value expires on a specified Scheduler.
|
Observable |
Observable.delay(long delay, TimeUnit
Returns an Observable that emits the items emitted by the source Observable shifted forward in time by a specified delay.
|
Observable |
Observable.delaySubscription(long delay, TimeUnit
Returns an Observable that delays the subscription to the source Observable by a given amount of time, both waiting and subscribing on a given Scheduler.
|
static <T> Observable |
Observable.from(Future
|
static Observable |
Observable.interval(long interval, TimeUnit
Returns an Observable that emits a sequential number every specified interval of time, on a specified Scheduler.
|
Observable |
Observable.observeOn(Scheduler
Modifies an Observable to perform its emissions and notifications on a specified
Scheduler, asynchronously with an unbounded buffer.
|
static Observable |
Observable.range(int start, int count, Scheduler
Returns an Observable that emits a sequence of Integers within a specified range, on a specified Scheduler.
|
Observable |
Observable.repeat(long count, Scheduler
Returns an Observable that repeats the sequence of items emitted by the source Observable at most
count times, on a particular Scheduler.
|
Observable |
Observable.repeat(Scheduler
Returns an Observable that repeats the sequence of items emitted by the source Observable indefinitely, on a particular Scheduler.
|
Observable |
Observable.repeatWhen(Func1
Returns an Observable that emits the same values as the source Observable with the exception of an
onCompleted.
|
<R> Observable |
Observable.replay(Func1
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 Observable, replaying no more than
bufferSize items that were emitted within a specified time window.
|
<R> Observable |
Observable.replay(Func1
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 Observable, replaying a maximum of
bufferSize items.
|
<R> Observable |
Observable.replay(Func1
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 Observable, replaying all items that were emitted within a specified time window.
|
<R> Observable |
Observable.replay(Func1
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 Observable.
|
ConnectableObservable |
Observable.replay(int bufferSize, long time, TimeUnit
Returns a
ConnectableObservable that shares a single subscription to the source Observable and that replays a maximum of
bufferSize items that are emitted within a specified time window.
|
ConnectableObservable |
Observable.replay(int bufferSize, Scheduler
Returns a
ConnectableObservable that shares a single subscription to the source Observable and replays at most
bufferSize items emitted by that Observable.
|
ConnectableObservable |
Observable.replay(long time, TimeUnit
Returns a
ConnectableObservable that shares a single subscription to the source Observable and replays all items emitted by that Observable within a specified time window.
|
ConnectableObservable |
Observable.replay(Scheduler
Returns a
ConnectableObservable that shares a single subscription to the source Observable that will replay all of its items and notifications to any future
Observer on the given
Scheduler.
|
Observable |
Observable.retryWhen(Func1
Returns an Observable that emits the same values as the source observable with the exception of an
onError.
|
Observable |
Observable.sample(long period, TimeUnit
Returns an Observable that emits the most recently emitted item (if any) emitted by the source Observable within periodic time intervals, where the intervals are defined on a particular Scheduler.
|
Observable |
Observable.skip(long time, TimeUnit
Returns an Observable that skips values emitted by the source Observable before a specified time window on a specified
Scheduler elapses.
|
Observable |
Observable.skipLast(long time, TimeUnit
Returns an Observable that drops items emitted by the source Observable during a specified time window (defined on a specified scheduler) before the source completes.
|
Observable |
Observable.subscribeOn(Scheduler
Asynchronously subscribes Observers to this Observable on the specified
Scheduler.
|
Observable |
Observable.take(long time, TimeUnit
Returns an Observable that emits those items emitted by source Observable before a specified time (on a specified Scheduler) runs out.
|
Observable |
Observable.takeLast(int count, long time, TimeUnit
Returns an Observable that emits at most a specified number of items from the source Observable that were emitted in a specified window of time before the Observable completed, where the timing information is provided by a given Scheduler.
|
Observable |
Observable.takeLast(long time, TimeUnit
Returns an Observable that emits the items from the source Observable that were emitted in a specified window of time before the Observable completed, where the timing information is provided by a specified Scheduler.
|
Observable |
Observable.takeLastBuffer(int count, long time, TimeUnit
Returns an Observable that emits a single List containing at most
count items from the source Observable that were emitted during a specified window of time (on a specified Scheduler) before the source Observable completed.
|
Observable |
Observable.takeLastBuffer(long time, TimeUnit
Returns an Observable that emits a single List containing those items from the source Observable that were emitted during a specified window of time before the source Observable completed, where the timing information is provided by the given Scheduler.
|
Observable |
Observable.throttleFirst(long skipDuration, TimeUnit
Returns an Observable that emits only the first item emitted by the source Observable during sequential time windows of a specified duration, where the windows are managed by a specified Scheduler.
|
Observable |
Observable.throttleLast(long intervalDuration, TimeUnit
Returns an Observable that emits only the last item emitted by the source Observable during sequential time windows of a specified duration, where the duration is governed by a specified Scheduler.
|
Observable |
Observable.throttleWithTimeout(long timeout, TimeUnit
Returns an Observable that only emits those items emitted by the source Observable that are not followed by another emitted item within a specified time window, where the time window is governed by a specified Scheduler.
|
Observable |
Observable.timeInterval(Scheduler
Returns an Observable that emits records of the time interval between consecutive items emitted by the source Observable, where this interval is computed on a specified Scheduler.
|
Observable |
Observable.timeout(long timeout, TimeUnit
Returns an Observable that mirrors the source Observable but applies a timeout policy for each emitted item using a specified Scheduler.
|
Observable |
Observable.timeout(long timeout, TimeUnit
Returns an Observable that mirrors the source Observable but applies a timeout policy for each emitted item, where this policy is governed on a specified Scheduler.
|
static Observable |
Observable.timer(long initialDelay, long period, TimeUnit
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 |
Observable.timer(long delay, TimeUnit
Returns an Observable that emits one item after a specified delay, on a specified Scheduler, and then completes.
|
Observable |
Observable.timestamp(Scheduler
Returns an Observable that emits each item emitted by the source Observable, wrapped in a
Timestamped object whose timestamps are provided by a specified Scheduler.
|
Observable |
Observable.unsubscribeOn(Scheduler
Modifies the source Observable so that subscribers will unsubscribe from it on a specified
Scheduler.
|
Observable |
Observable.window(long timespan, long timeshift, TimeUnit
Returns an Observable that emits windows of items it collects from the source Observable.
|
Observable |
Observable.window(long timespan, long timeshift, TimeUnit
Returns an Observable that emits windows of items it collects from the source Observable.
|
Observable |
Observable.window(long timespan, TimeUnit
Returns an Observable that emits windows of items it collects from the source Observable.
|
Observable |
Observable.window(long timespan, TimeUnit
Returns an Observable that emits windows of items it collects from the source Observable.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Subject |
OperatorReplay.createScheduledSubject(Subject
Creates a subject whose client observers will observe events propagated through the given wrapped subject.
|
static <T> Observable |
OnSubscribeRedo.redo(Observable
|
static <T> Observable |
OnSubscribeRedo.repeat(Observable
|
static <T> Observable |
OnSubscribeRedo.repeat(Observable
|
static <T> Observable |
OnSubscribeRedo.repeat(Observable
|
static <T> Observable |
OnSubscribeRedo.retry(Observable
|
| Constructor and Description | |
|---|---|
OnSubscribeDelaySubscription(Observable
|
|
OnSubscribeTimerOnce(long time, TimeUnit
|
|
OnSubscribeTimerPeriodically(long initialDelay, long period, TimeUnit
|
|
OperatorBufferWithTime(long timespan, long timeshift, TimeUnit
|
|
OperatorDebounceWithTime(long timeout, TimeUnit
|
|
OperatorDelay(Observable
|
|
OperatorObserveOn(Scheduler
|
|
OperatorSampleWithTime(long time, TimeUnit
|
|
OperatorSkipLastTimed(long time, TimeUnit
|
|
OperatorSkipTimed(long time, TimeUnit
|
|
OperatorSubscribeOn(Scheduler
|
|
OperatorTakeLastTimed(int count, long time, TimeUnit
|
|
OperatorTakeLastTimed(long time, TimeUnit
|
|
OperatorTakeTimed(long time, TimeUnit
|
|
OperatorThrottleFirst(long windowDuration, TimeUnit
|
|
OperatorTimeInterval(Scheduler
|
|
OperatorTimeout(long timeout, TimeUnit
|
|
OperatorTimestamp(Scheduler
|
|
OperatorUnsubscribeOn(Scheduler
|
|
OperatorWindowWithTime(long timespan, long timeshift, TimeUnit
|
| Modifier and Type | Method and Description |
|---|---|
Scheduler |
RxJavaSchedulersHook.getComputationScheduler()
Scheduler to return from
Schedulers or null if default should be used.
|
Scheduler |
RxJavaSchedulersHook.getIOScheduler()
Scheduler to return from
Schedulers or null if default should be used.
|
Scheduler |
RxJavaSchedulersHook.getNewThreadScheduler()
Scheduler to return from
Schedulers or null if default should be used.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ImmediateScheduler
Executes work immediately on the current thread.
|
class |
NewThreadScheduler
Schedules work on a new thread.
|
class |
TestScheduler
The
TestScheduler is useful for debugging.
|
class |
TrampolineScheduler
Schedules work on the current thread but does not execute immediately.
|
| Modifier and Type | Method and Description |
|---|---|
static Scheduler |
Schedulers.computation()
Creates and returns a
Scheduler intended for computational work.
|
static Scheduler |
Schedulers.from(Executor
Converts an
Executor into a new Scheduler instance.
|
static Scheduler |
Schedulers.immediate()
Creates and returns a
Scheduler that executes work immediately on the current thread.
|
static Scheduler |
Schedulers.io()
Creates and returns a
Scheduler intended for IO-bound work.
|
static Scheduler |
Schedulers.newThread()
|
static Scheduler |
Schedulers.trampoline()
Creates and returns a
Scheduler that queues work on the current thread to be executed after the current work completes.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> ReplaySubject |
ReplaySubject.createWithTime(long time, TimeUnit
Creates a time-bounded replay subject.
|
static <T> ReplaySubject |
ReplaySubject.createWithTimeAndSize(long time, TimeUnit
Creates a time- and size-bounded replay subject.
|