Returns the key associated with this grouped observable.
Characteristic function for an Observable
instance, that
creates the subscription and that eventually starts the streaming
of events to the given Observer, being meant to be overridden
in custom combinators or in classes implementing Observable.
Characteristic function for an Observable
instance, that
creates the subscription and that eventually starts the streaming
of events to the given Observer, being meant to be overridden
in custom combinators or in classes implementing Observable.
This function is "unsafe" to call because it does not protect the
calls to the given Observer implementation in regards to
unexpected exceptions that violate the contract, therefore the
given instance must respect its contract and not throw any
exceptions when the observable calls onNext
, onComplete
and
onError
. If it does, then the behavior is undefined.
Returns the first generated result as a Future and then cancels the subscription.
Returns the first generated result as a Future and then cancels the subscription.
Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e.
Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e. whose source is shared by all observers). The underlying subject used is a BehaviorSubject.
Buffers signals while busy, after which it emits the buffered events as a single bundle.
Buffers signals while busy, after which it emits the buffered events as a single bundle.
This operator starts applying back-pressure when the underlying buffer's size is exceeded.
Caches the emissions from the source Observable and replays them in order to any subsequent Subscribers.
Caches the emissions from the source Observable and replays them in order to any subsequent Subscribers. This method has similar behavior to replay except that this auto-subscribes to the source Observable rather than returning a ConnectableObservable for which you must call connect to activate the subscription.
When you call cache, it does not yet subscribe to the source Observable
and so does not yet begin caching items. This only happens when the
first Subscriber calls the resulting Observable's subscribe
method.
is the maximum buffer size after which old events start being dropped (according to what happens when using ReplaySubject.createWithSize)
an Observable that, when first subscribed to, caches all of its items and notifications for the benefit of subsequent subscribers
Caches the emissions from the source Observable and replays them in order to any subsequent Subscribers.
Caches the emissions from the source Observable and replays them in order to any subsequent Subscribers. This method has similar behavior to replay except that this auto-subscribes to the source Observable rather than returning a ConnectableObservable for which you must call connect to activate the subscription.
When you call cache, it does not yet subscribe to the source Observable
and so does not yet begin caching items. This only happens when the
first Subscriber calls the resulting Observable's subscribe
method.
Note: You sacrifice the ability to cancel the origin when you use the cache operator so be careful not to use this on Observables that emit an infinite or very large number of items that will use up memory.
an Observable that, when first subscribed to, caches all of its items and notifications for the benefit of subsequent subscribers
Subscribes to the source Observable
and foreach element emitted by the source
it executes the given callback.
Subscribes to the source Observable
and foreach element emitted by the source
it executes the given callback.
Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e.
Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e. whose source is shared by all observers).
Subscribes to the stream.
Subscribes to the stream.
This function is "unsafe" to call because it does not protect the
calls to the given Observer implementation in regards to
unexpected exceptions that violate the contract, therefore the
given instance must respect its contract and not throw any
exceptions when the observable calls onNext
, onComplete
and
onError
. If it does, then the behavior is undefined.
is an Observer that respects the Monifu Rx contract
is the Scheduler used for creating the subscription
Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e.
Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e. whose source is shared by all observers). The underlying subject used is a PublishSubject.
Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e.
Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e. whose source is shared by all observers). The underlying subject used is a AsyncSubject.
Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e.
Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e. whose source is shared by all observers). The underlying subject used is a ReplaySubject.
is the size of the buffer limiting the number of items that can be replayed (on overflow the head starts being dropped)
Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e.
Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e. whose source is shared by all observers). The underlying subject used is a ReplaySubject.
Returns a new Observable that multi-casts (shares) the original Observable.
Returns a new Observable that multi-casts (shares) the original Observable.
Subscribes to the stream.
Subscribes to the stream.
a subscription that can be used to cancel the streaming.
Subscribes to the stream.
Subscribes to the stream.
a subscription that can be used to cancel the streaming.
Subscribes to the stream.
Subscribes to the stream.
a subscription that can be used to cancel the streaming.
Subscribes to the stream.
Subscribes to the stream.
a subscription that can be used to cancel the streaming.
Subscribes to the stream.
Subscribes to the stream.
a subscription that can be used to cancel the streaming.
Subscribes to the stream.
Subscribes to the stream.
a subscription that can be used to cancel the streaming.
Wraps this Observable into a org.reactivestreams.Publisher
.
Wraps this Observable into a org.reactivestreams.Publisher
.
See the Reactive Streams
protocol that Monifu implements.
A
GroupedObservable
is an observable type generated byObservable.groupBy
. It has the following properties:- comes accompanied with a
key
property after which the grouping was made- supports a single subscriber, throwing
IllegalStateException
if you attempt multiple subscriptions