Class Summary
Utility functions for use with backpressure.
Wait for and iterate over the latest values of the source observable.
Returns an Iterable that always returns the item most recently emitted by an Observable, or a seed value if no item has yet been emitted.
Returns an Iterable that blocks until the Observable emits another item, then returns that item.
Returns a Future representing the single value emitted by an Observable.
Returns an Iterator that iterates over all items emitted by a specified Observable.
A solution to the "time gap" problem that occurs with
groupBy and
pivot.
An observable which auto-connects to another observable, caches the elements from that observable but allows terminating the connection and completing the cache.
For use in internal operators that need something like materialize and dematerialize wholly within the implementation of the operator but don't want to incur the allocation cost of actually creating
Notification objects for every
onNext and
onCompleted.
Given multiple
Observables, propagates the one that first emits an item.
Wraps a ConnectableObservable and calls its connect() method once the specified number of Subscribers have subscribed.
Returns an Observable that combines the emissions of multiple source observables.
Do not create the Observable until an Observer subscribes; create a fresh Observable on each subscription.
Delays the subscription to the source by the given amount, running on the given scheduler.
Delays the subscription until the Observable emits an event.
Do not invoke the function until an Observer subscribes; Invokes function on each subscription.
Converts an
Iterable sequence into an
Observable.
Corrrelates two sequences when they overlap and groups the results.
Correlates the elements of two sequences based on overlapping durations.
Emit ints from start to end inclusive.
Returns an observable sequence that stays connected to the source as long as there is at least one subscription to the observable sequence.
Allows conversion of an Observable to a Single ensuring that exactly one item is emitted - no more and no less.
Timer that emits a single 0L and completes after the specified time.
Emit 0L after the initial period and ever increasing number after each period.
Converts a
Future into an
Observable.
Constructs an observable sequence that depends on a resource object.
Returns an Observable that emits a Boolean that indicates whether all items emitted by an Observable satisfy a condition.
Returns an
Observable that emits
true if any element of an observable sequence satisfies a condition, otherwise
false.
Hides the identity of another observable.
This operation takes values from the specified
Observable source and stores them in a buffer until the
Observable constructed using the
Func0 argument, produces a value.
This operation takes values from the specified
Observable source and stores them in all active chunks until the buffer contains a specified number of elements.
This operation takes values from the specified
Observable source and stores them in the currently active chunks.
This operation takes values from the specified
Observable source and stores them in a buffer.
Converts the elements of an observable sequence to the specified type.
Returns an Observable that emits the items emitted by two or more Observables, one after the other.
Delay the emission via another observable if no new source appears in the meantime.
This operation filters out events which are published too quickly in succession.
Delays the emission of onNext events by a given amount of time.
Delay the subscription and emission of the source items by a per-item observable that fires its first element.
Reverses the effect of
OperatorMaterialize by transforming the Notification objects emitted by a source Observable into the items or notifications they represent.
Returns an Observable that emits all distinct items emitted by the source.
Returns an Observable that emits all sequentially distinct items emitted by the source.
Converts the elements of an observable sequence to the specified type.
This operator modifies an
Observable so a given action is invoked when the
rx.Observable.Producer receives a request.
This operator modifies an
Observable so a given action is invoked when the
Observable is subscribed.
This operator modifies an
Observable so a given action is invoked when the
Observable is unsubscribed.
Returns the element at a specified index in a sequence.
Filters an Observable by discarding any items it emits that do not meet some test.
Registers an action to be called after an Observable invokes
onComplete or
onError.
Groups the items emitted by an Observable according to a specified criterion, and emits these grouped items as Observables, one Observable per group.
Applies a function of your choosing to every item emitted by an
Observable, and emits the results of this transformation as a new
Observable.
Applies a function of your choosing to every item emitted by an
Observable, and emits the results of this transformation as a new
Observable.
An
Observable.Operator that pairs up items emitted by a source
Observable with the sequence of items emitted by the
Observable that is derived from each item by means of a selector, and emits the results of this pairing.
Turns all of the notifications from an Observable into
onNext emissions, and marks them with their original notification types within
Notification objects.
Flattens a list of
Observables into one
Observable, without any transformation.
Shares a single subscription to a source through a Subject.
Delivers events on the specified
Scheduler asynchronously via an unbounded buffer.
Operator that blocks the producer thread in case a backpressure is needed.
An operator which drops all but the last received value in case the downstream doesn't request more.
Instruct an Observable to pass control to another Observable (the return value of a function) rather than invoking
onError if it encounters an error.
Instruct an Observable to pass control to another Observable rather than invoking
onError if it encounters an error.
Instruct an Observable to emit a particular item to its Observer's
onNext method rather than invoking
onError if it encounters an error.
Instruct an Observable to pass control to another Observable rather than invoking
onError if it encounters an error of type
Exception.
A connectable observable which shares an underlying source and dispatches source values to subscribers in a backpressure-aware manner.
Sample with the help of another observable.
Returns an Observable that emits the results of sampling the items emitted by the source Observable at a specified time interval.
Returns an Observable that applies a function to the first item emitted by a source Observable, then feeds the result of that function along with the second item emitted by an Observable into the same function, and so on until all items have been emitted by the source Observable, emitting the result of each of these iterations.
Returns an
Observable that emits a single
Boolean value that indicates whether two source
Observables emit sequences of items that are equivalent to each other.
If the Observable completes after emitting a single item that matches a predicate, return an Observable containing that item.
Returns an Observable that skips the first
num items emitted by the source Observable.
Bypasses a specified number of elements at the end of an observable sequence.
Skip delivering values in the time window before the values.
Skips elements until a specified time elapses.
Skip elements from the source Observable until the secondary observable fires an element.
Skips any emitted source items as long as the specified condition holds true.
Subscribes Observers on the specified
Scheduler.
Transforms an Observable that emits Observables into a single Observable that emits the items emitted by the most recently published of those Observables.
If the Observable completes without emitting any items, subscribe to an alternate Observable.
An
Observable that emits the first
num items emitted by the source
Observable.
Returns an Observable that emits the at most the last
count items emitted by the source Observable.
Returns an Observable that emits the last
count items emitted by the source Observable.
Takes values from the source until the specific time ellapses.
Returns an Observable that emits the items from the source Observable until another Observable emits an item.
Returns an Observable that emits items emitted by the source Observable until the provided predicate returns false
O Returns an Observable that emits items emitted by the source Observable as long as a specified condition is true.
Throttle by windowing a stream and returning the first value in each window.
Records the time interval between consecutive elements in an observable sequence.
Applies a timeout policy for each element in the observable sequence, using the specified scheduler to run timeout timers.
Returns an Observable that mirrors the source Observable.
Wraps each item emitted by a source
Observable in a
Timestamped object.
Maps the elements of the source observable into a java.util.Map instance and emits that once the source observable completes.
Maps the elements of the source observable into a multimap (Map<K, Collection<V>>) where each key entry has a collection of the source's values.
The default collection factory for a key in the multimap returning an ArrayList independent of the key.
The default multimap factory returning a HashMap.
Returns an
Observable that emits a single item, a list composed of all the items emitted by the source
Observable.
Return an
Observable that emits the items emitted by the source
Observable, in a sorted order (each item emitted by the
Observable must implement
Comparable with respect to all other items in the sequence, or you must pass in a sort function).
Unsubscribes on the specified Scheduler.
Creates non-overlapping windows of items where each window is terminated by an event from a secondary observable and a new window is started immediately.
Creates non-overlapping windows of items where each window is terminated by an event from a secondary observable and a new window is started immediately.
Creates windows of values into the source sequence with skip frequency and size bounds.
Creates potentially overlapping windows of the source items where each window is started by a value emitted by an observable and closed when an associated Observable emits a value or completes.
Creates windows of values into the source sequence with timed window creation, length and size bounds.
Combines values from two sources only when the main source emits.
Returns an Observable that emits the results of a function applied to sets of items emitted, in sequence, by two or more other Observables.
A Subject variant which buffers events until a single Subscriber arrives and replays them to it and potentially switches to direct delivery once the Subscriber caught up and requested an unlimited amount.
Package rx.internal.operators Description
Operators that allow composing Observables to transform and manipulate data in an asynchronous, functional and thread-safe manner.
The operators are all exposed via the ObservableExtensions class