| 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 |
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 |
Observable.subscribe()
Subscribes to an Observable but ignore its emissions and notifications.
|
Subscription |
Observable.subscribe(Action1
Subscribes to an Observable and provides a callback to handle the items it emits.
|
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 |
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
OperatorPublish.connect(Action1
|
void |
OperatorMulticast.connect(Action1
|
| 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
|
| Modifier and Type | Method and Description |
|---|---|
void |
ScheduledAction.add(Subscription
|
| Modifier and Type | Class and Description |
|---|---|
class |
SubscriptionIndexedRingBuffer<T extends Subscription
Similar to CompositeSubscription but giving extra access to internals so we can reuse a datastructure.
|
class |
SubscriptionRandomList<T extends Subscription
Subscription that represents a group of Subscriptions that are unsubscribed together.
|
| 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 |
SubscriptionIndexedRingBuffer<T extends Subscription
Similar to CompositeSubscription but giving extra access to internals so we can reuse a datastructure.
|
class |
SubscriptionList
Subscription that represents a group of Subscriptions that are unsubscribed together.
|
class |
SubscriptionRandomList<T extends Subscription
Subscription that represents a group of Subscriptions that are unsubscribed together.
|
class |
SynchronizedSubscription
|
| Modifier and Type | Method and Description |
|---|---|
void |
SubscriptionList.add(Subscription
|
void |
SubscriptionRandomList.remove(Subscription
|
| Constructor and Description | |
|---|---|
SubscriptionIndexedRingBuffer(T... subscriptions)
|
|
SubscriptionList(Subscription
|
|
SubscriptionRandomList(T... subscriptions)
|
|
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 |
|---|---|
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 Rx 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()
Returns a
Subscription that does nothing.
|
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.
|
| 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.
|