| Package | Description |
|---|---|
| rx |
Rx Observables
|
| rx.functions | |
| rx.internal.operators |
Operators that allow composing Observables to transform and manipulate data in an asynchronous, functional and thread-safe manner.
|
| rx.observables | |
| rx.observers |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Observable
Invoked when Observable.subscribe is called.
|
static interface |
Single
Invoked when Single.execute is called.
|
| Modifier and Type | Method and Description |
|---|---|
Observable |
Observable.doOnEach(Action1
Modifies the source Observable so that it invokes an action for each item it emits.
|
Single |
Single.doOnError(Action1
Modifies the source
Single so that it invokes an action if it calls
onError.
|
Observable |
Observable.doOnError(Action1
Modifies the source Observable so that it invokes an action if it calls
onError.
|
Observable |
Observable.doOnNext(Action1
Modifies the source Observable so that it invokes an action when it calls
onNext.
|
Observable |
Observable.doOnRequest(Action1
Modifies the source
Observable so that it invokes the given action when it receives a request for more items.
|
Single |
Single.doOnSuccess(Action1
Modifies the source
Single so that it invokes an action when it calls
onSuccess.
|
void |
Observable.forEach(Action1
Subscribes to the
Observable and receives notifications for each element.
|
void |
Observable.forEach(Action1
Subscribes to the
Observable and receives notifications for each element and error events.
|
void |
Observable.forEach(Action1
Subscribes to the
Observable and receives notifications for each element and error events.
|
void |
Observable.forEach(Action1
Subscribes to the
Observable and receives notifications for each element and the terminal events.
|
void |
Observable.forEach(Action1
Subscribes to the
Observable and receives notifications for each element and the terminal events.
|
Observable |
Observable.onBackpressureDrop(Action1
Instructs an Observable that is emitting items faster than its observer can consume them to discard, rather than emit, those items that its observer is not prepared to observe.
|
Subscription |
Single.subscribe(Action1
Subscribes to a Single and provides a callback to handle the item it emits.
|
Subscription |
Observable.subscribe(Action1
Subscribes to an Observable and provides a callback to handle the items it emits.
|
Subscription |
Single.subscribe(Action1
Subscribes to a Single and provides callbacks to handle the item it emits or any error notification it issues.
|
Subscription |
Single.subscribe(Action1
Subscribes to a Single and provides callbacks to handle the item it emits or any error notification it issues.
|
Subscription |
Observable.subscribe(Action1
Subscribes to an Observable and provides callbacks to handle the items it emits and any error notification it issues.
|
Subscription |
Observable.subscribe(Action1
Subscribes to an Observable and provides callbacks to handle the items it emits and any error notification it issues.
|
Subscription |
Observable.subscribe(Action1
Subscribes to an Observable and provides callbacks to handle the items it emits and any error or completion notification it issues.
|
Subscription |
Observable.subscribe(Action1
Subscribes to an Observable and provides callbacks to handle the items it emits and any error or completion notification it issues.
|
static <T |
Observable.using(Func0
Constructs an Observable that creates a dependent resource object which is disposed of on unsubscription.
|
static <T |
Observable.using(Func0
Constructs an Observable that creates a dependent resource object which is disposed of just before termination if you have set
disposeEagerly to
true and unsubscription does not occur before termination.
|
| Modifier and Type | Method and Description |
|---|---|
static <T0> FuncN |
Functions.fromAction(Action1
|
static <T1> Func1 |
Actions.toFunc(Action1
Converts an
Action1 to a function that calls the action and returns
null.
|
static <T1 |
Actions.toFunc(Action1
Converts an
Action1 to a function that calls the action and returns a specified value.
|
| Modifier and Type | Class and Description |
|---|---|
class |
OnSubscribeAmb<T>
Given multiple
Observables, propagates the one that first emits an item.
|
class |
OnSubscribeAutoConnect<T>
Wraps a ConnectableObservable and calls its connect() method once the specified number of Subscribers have subscribed.
|
class |
OnSubscribeCombineLatest<T
Returns an Observable that combines the emissions of multiple source observables.
|
class |
OnSubscribeDefer<T>
Do not create the Observable until an Observer subscribes; create a fresh Observable on each subscription.
|
class |
OnSubscribeDelaySubscription<T>
Delays the subscription to the source by the given amount, running on the given scheduler.
|
class |
OnSubscribeDelaySubscriptionWithSelector<T
Delays the subscription until the Observable emits an event.
|
class |
OnSubscribeFromCallable<T>
Do not invoke the function until an Observer subscribes; Invokes function on each subscription.
|
class |
OnSubscribeFromIterable<T>
Converts an
Iterable sequence into an
Observable.
|
class |
OnSubscribeGroupJoin<T1
Corrrelates two sequences when they overlap and groups the results.
|
class |
OnSubscribeJoin<TLeft
Correlates the elements of two sequences based on overlapping durations.
|
class |
OnSubscribeRange
Emit ints from start to end inclusive.
|
class |
OnSubscribeRedo<T>
|
class |
OnSubscribeRefCount<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 |
OnSubscribeSingle<T>
Allows conversion of an Observable to a Single ensuring that exactly one item is emitted - no more and no less.
|
class |
OnSubscribeTimerOnce
Timer that emits a single 0L and completes after the specified time.
|
class |
OnSubscribeTimerPeriodically
Emit 0L after the initial period and ever increasing number after each period.
|
class |
OnSubscribeUsing<T
Constructs an observable sequence that depends on a resource object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
OperatorPublish.connect(Action1
|
void |
OperatorReplay.connect(Action1
|
void |
OperatorMulticast.connect(Action1
|
| Constructor and Description | |
|---|---|
OnSubscribeAutoConnect(ConnectableObservable
|
|
OnSubscribeUsing(Func0
|
|
OperatorDoOnRequest(Action1
|
|
OperatorOnBackpressureDrop(Action1
|
| Modifier and Type | Class and Description |
|---|---|
class |
AsyncOnSubscribe<S
A utility class to create
OnSubscribe<T> functions that respond correctly to back pressure requests from subscribers.
|
class |
SyncOnSubscribe<S
A utility class to create
OnSubscribe<T> functions that respond correctly to back pressure requests from subscribers.
|
| Modifier and Type | Method and Description |
|---|---|
Observable |
ConnectableObservable.autoConnect(int numberOfSubscribers, Action1
Returns an Observable that automatically connects 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.
|
abstract void |
ConnectableObservable.connect(Action1
Instructs the
ConnectableObservable to begin emitting the items from its underlying
Observable to its
Subscribers.
|
static <S |
SyncOnSubscribe.createSingleState(Func0
Generates a synchronous
SyncOnSubscribe that calls the provided
next function to generate data to downstream subscribers.
|
static <S |
AsyncOnSubscribe.createSingleState(Func0
Generates a synchronous
AsyncOnSubscribe that calls the provided
next function to generate data to downstream subscribers.
|
static <S |
SyncOnSubscribe.createStateful(Func0
Generates a synchronous
SyncOnSubscribe that calls the provided
next function to generate data to downstream subscribers.
|
static <S |
AsyncOnSubscribe.createStateful(Func0
Generates a synchronous
AsyncOnSubscribe that calls the provided
next function to generate data to downstream subscribers.
|
static <T> Observable |
SyncOnSubscribe.createStateless(Action1
Generates a synchronous
SyncOnSubscribe that calls the provided
next function to generate data to downstream subscribers.
|
static <T> Observable |
SyncOnSubscribe.createStateless(Action1
Generates a synchronous
SyncOnSubscribe that calls the provided
next function to generate data to downstream subscribers.
|
void |
BlockingObservable.forEach(Action1
Invokes a method on each item emitted by this
BlockingObservable and blocks until the Observable completes.
|
void |
BlockingObservable.subscribe(Action1
Subscribes to the source and calls the given action on the current thread and rethrows any exception wrapped into OnErrorNotImplementedException.
|
void |
BlockingObservable.subscribe(Action1
Subscribes to the source and calls the given actions on the current thread.
|
void |
BlockingObservable.subscribe(Action1
Subscribes to the source and calls the given actions on the current thread.
|
void |
BlockingObservable.subscribe(Action1
Subscribes to the source and calls the given actions on the current thread.
|
void |
BlockingObservable.subscribe(Action1
Subscribes to the source and calls the given actions on the current thread.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Subscriber |
Subscribers.create(Action1
Creates a
Subscriber that receives the emissions of any
Observable it subscribes to via
onNext but ignores
onError and
onCompleted notifications.
|
static <T> Observer |
Observers.create(Action1
Creates an
Observer that receives the emissions of any
Observable it subscribes to via
onNext but ignores
onCompleted notifications; it will throw an
OnErrorNotImplementedException if
onError is invoked.
|
static <T> Subscriber |
Subscribers.create(Action1
Creates an
Subscriber that receives the emissions of any
Observable it subscribes to via
onNext and handles any
onError notification but ignores an
onCompleted notification.
|
static <T> Subscriber |
Subscribers.create(Action1
Creates an
Subscriber that receives the emissions of any
Observable it subscribes to via
onNext and handles any
onError notification but ignores an
onCompleted notification.
|
static <T> Observer |
Observers.create(Action1
Creates an
Observer that receives the emissions of any
Observable it subscribes to via
onNext and handles any
onError notification but ignores an
onCompleted notification.
|
static <T> Observer |
Observers.create(Action1
Creates an
Observer that receives the emissions of any
Observable it subscribes to via
onNext and handles any
onError notification but ignores an
onCompleted notification.
|
static <T> Subscriber |
Subscribers.create(Action1
Creates an
Subscriber that receives the emissions of any
Observable it subscribes to via
onNext and handles any
onError or
onCompleted notifications.
|
static <T> Subscriber |
Subscribers.create(Action1
Creates an
Subscriber that receives the emissions of any
Observable it subscribes to via
onNext and handles any
onError or
onCompleted notifications.
|
static <T> Observer |
Observers.create(Action1
Creates an
Observer that receives the emissions of any
Observable it subscribes to via
onNext and handles any
onError or
onCompleted notifications.
|
static <T> Observer |
Observers.create(Action1
Creates an
Observer that receives the emissions of any
Observable it subscribes to via
onNext and handles any
onError or
onCompleted notifications.
|