| 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.internal.schedulers | |
| rx.internal.util | |
| rx.observables | |
| rx.observers | |
| rx.plugins | |
| rx.subscriptions |
| Modifier and Type | Class and Description |
|---|---|
static class |
Scheduler
Sequential Scheduler for executing actions on a single thread or event loop.
|
class |
SingleSubscriber<T>
Provides a mechanism for receiving push-based notifications.
|
class |
Subscriber<T>
Provides a mechanism for receiving push-based notifications from Observables, and permits manual unsubscribing from these Observables.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Subscription |
Scheduler.Worker.schedule(Action0
Schedules an Action for execution.
|
abstract Subscription |
Scheduler.Worker.schedule(Action0
Schedules an Action for execution at some point in the future.
|
Subscription |
Scheduler.Worker.schedulePeriodically(Action0
Schedules a cancelable action to be executed periodically.
|
Subscription |
Single.subscribe()
Subscribes to a Single but ignore its emission or notification.
|
Subscription |
Observable.subscribe()
Subscribes to an Observable and ignores
onNext and
onCompleted emissions.
|
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 |
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(Observer
Subscribes to an Observable and provides an Observer that implements functions to handle the items the Observable emits and any error or completion notification it issues.
|
Subscription |
Single.subscribe(SingleSubscriber
Subscribes to a Single and provides a
SingleSubscriber that implements functions to handle the item the Single emits or any error notification it issues.
|
Subscription |
Single.subscribe(Subscriber
Subscribes to a Single and provides a Subscriber that implements functions to handle the item the Single emits or any error notification it issues.
|
Subscription |
Observable.subscribe(Subscriber
Subscribes to an Observable and provides a Subscriber that implements functions to handle the items the Observable emits and any error or completion notification it issues.
|
Subscription |
Observable.unsafeSubscribe(Subscriber
Subscribes to an Observable and invokes
Observable.OnSubscribe function without any contract protection, error handling, unsubscribe, or execution hooks.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Subscriber.add(Subscription
Adds a
Subscription to this Subscriber's list of subscriptions if this list is not marked as unsubscribed.
|
void |
SingleSubscriber.add(Subscription
Adds a
Subscription to this Subscriber's list of subscriptions if this list is not marked as unsubscribed.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockingOperatorToIterator
|
| Modifier and Type | Method and Description |
|---|---|
void |
OperatorPublish.connect(Action1
|
void |
OperatorReplay.connect(Action1
|
void |
OperatorMulticast.connect(Action1
|
| Constructor and Description | |
|---|---|
OnSubscribeAutoConnect(ConnectableObservable
|
| Modifier and Type | Class and Description |
|---|---|
class |
NewThreadWorker
|
class |
ScheduledAction
A
Runnable that executes an
Action0 and can be cancelled.
|
| Modifier and Type | Method and Description |
|---|---|
Subscription |
NewThreadWorker.schedule(Action0
|
Subscription |
NewThreadWorker.schedule(Action0
|
Subscription |
EventLoopsScheduler.scheduleDirect(Action0
Schedules the action directly on one of the event loop workers without the additional infrastructure and checking.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ScheduledAction.add(Subscription
Adds a general Subscription to this
ScheduledAction that will be unsubscribed if the underlying
action completes or the this scheduled action is cancelled.
|
| Modifier and Type | Class and Description |
|---|---|
class |
IndexedRingBuffer<E>
Add/Remove without object allocation (after initial construction).
|
class |
RxRingBuffer
This assumes Spsc or Spmc usage.
|
class |
SubscriptionList
Subscription that represents a group of Subscriptions that are unsubscribed together.
|
class |
SynchronizedSubscription
|
| Modifier and Type | Method and Description |
|---|---|
void |
SubscriptionList.add(Subscription
|
static void |
BlockingUtils.awaitForComplete(CountDownLatch
Blocks and waits for a
Subscription to complete.
|
void |
SubscriptionList.remove(Subscription
|
| Constructor and Description | |
|---|---|
SubscriptionList(Subscription
|
|
SubscriptionList(Subscription
|
|
SynchronizedSubscription(Subscription
|
| Modifier and Type | Method and Description |
|---|---|
Subscription |
ConnectableObservable.connect()
Instructs the
ConnectableObservable to begin emitting the items from its underlying
Observable to its
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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SafeSubscriber<T>
SafeSubscriber is a wrapper around
Subscriber that ensures that the
Subscriber complies with
the Observable contract.
|
class |
SerializedSubscriber<T>
Enforces single-threaded, serialized, ordered execution of
SerializedSubscriber,
SerializedSubscriber, and
SerializedSubscriber.
|
class |
TestSubscriber<T>
A
TestSubscriber is a variety of
Subscriber that you can use for unit testing, to perform assertions, inspect received events, or wrap a mocked
Subscriber.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Subscription |
RxJavaObservableExecutionHook.onSubscribeReturn(Subscription
Invoked after successful execution of
Observable with returned
Subscription.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Subscription |
RxJavaObservableExecutionHook.onSubscribeReturn(Subscription
Invoked after successful execution of
Observable with returned
Subscription.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanSubscription
Subscription that can be checked for status such as in a loop inside an
Observable to exit the loop if unsubscribed.
|
class |
CompositeSubscription
Subscription that represents a group of Subscriptions that are unsubscribed together.
|
class |
MultipleAssignmentSubscription
Subscription that can be checked for status such as in a loop inside an
Observable to exit the loop if unsubscribed.
|
class |
RefCountSubscription
Keeps track of the sub-subscriptions and unsubscribes the underlying subscription once all sub-subscriptions have unsubscribed.
|
class |
SerialSubscription
Represents a subscription whose underlying subscription can be swapped for another subscription which causes the previous underlying subscription to be unsubscribed.
|
| Modifier and Type | Method and Description |
|---|---|
static Subscription |
Subscriptions.create(Action0
Creates and returns a
Subscription that invokes the given
Action0 when unsubscribed.
|
static Subscription |
Subscriptions.empty()
|
static Subscription |
Subscriptions.from(Future
Converts a
Future into a
Subscription and cancels it when unsubscribed.
|
Subscription |
SerialSubscription.get()
Retrieves the current
Subscription that is being represented by this
SerialSubscription.
|
Subscription |
RefCountSubscription.get()
Returns a new sub-subscription
|
Subscription |
MultipleAssignmentSubscription.get()
Gets the underlying subscription.
|
static Subscription |
Subscriptions.unsubscribed()
Returns a
Subscription to which
unsubscribe does nothing, as it is already unsubscribed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CompositeSubscription.add(Subscription
Adds a new
Subscription to this
CompositeSubscription if the
CompositeSubscription is not yet unsubscribed.
|
static CompositeSubscription |
Subscriptions.from(Subscription
Converts a set of
Subscriptions into a
CompositeSubscription that groups the multiple Subscriptions together and unsubscribes from all of them together.
|
void |
CompositeSubscription.remove(Subscription
|
void |
SerialSubscription.set(Subscription
Swaps out the old
Subscription for the specified
Subscription.
|
void |
MultipleAssignmentSubscription.set(Subscription
Sets the underlying subscription.
|
| Constructor and Description | |
|---|---|
CompositeSubscription(Subscription
|
|
RefCountSubscription(Subscription
Creates a
RefCountSubscription by wrapping the given non-null
Subscription.
|