Package io.reactivex.rxjava4.core
Flowable, Observable,
Single, Maybe and
Completable; base reactive consumers;
other common base interfaces.
A library that enables subscribing to and composing asynchronous events and callbacks.
The Flowable/Subscriber, Observable/Observer, Single/SingleObserver and
Completable/CompletableObserver interfaces and associated operators (in
the io.reactivex.internal.operators package) are inspired by the
Reactive Rx library in Microsoft .NET but designed and implemented on
the more advanced Reactive-Streams ( http://www.reactivestreams.org ) principles.
More information can be found at http://msdn.microsoft.com/en-us/data/gg577609.
Compared with the Microsoft implementation:
- Observable == IObservable (base type)
- Observer == IObserver (event consumer)
- Disposable == IDisposable (resource/cancellation management)
- Observable == Observable (factory methods)
- Flowable == IAsyncEnumerable (backpressure)
- Subscriber == IAsyncEnumerator
Services which intend on exposing data asynchronously and wish
to allow reactive processing and composition can implement the
Flowable, Observable, Single,
Maybe or Completable class which then allow
consumers to subscribe to them and receive events.
Usage examples can be found on the Flowable/Observable and
invalid reference
org.reactivestreams.Subscriber
-
ClassDescriptionOptions to deal with buffer overflow when using onBackpressureBuffer.Represents the options for applying backpressure to a source sequence.The
Completableclass represents a deferred computation without any value but only indication for completion or exception.Convenience interface and callback used by theCompletable.to(CompletableConverter)operator to turn a Completable into another value fluently.Abstraction over an RxJavaCompletableObserverthat allows associating a resource with it.Provides a mechanism for receiving push-based notification of a valueless completion or an error.A functional interface that has asubscribe()method that receives aCompletableEmitterinstance that allows pushing an event in a cancellation-safe manner.Interface to map/wrap a downstream observer to an upstream observer.Represents a basicCompletablesource base interface, consumable via anCompletableObserver.Convenience interface and callback used by the compose operator to turn aCompletableinto anotherCompletablefluently.Emitter<T>Base interface for emitting signals in a push-fashion in various generator-like source operators (create, generate).Flowable<T>TheFlowableclass that implements the Reactive StreamsFlow.PublisherPattern and offers factory methods, intermediate operators and the ability to consume reactive dataflows.FlowableConverter<T,R> Convenience interface and callback used by theFlowable.to(FlowableConverter)operator to turn aFlowableinto another value fluently.Abstraction over a Reactive Streamsthat allows associating a resource with it and exposes the current number of downstream requested amount.invalid reference
org.reactivestreams.SubscriberA functional interface that has asubscribe()method that receives aFlowableEmitterinstance that allows pushing events in a backpressure-safe and cancellation-safe manner.FlowableOperator<Downstream, Upstream>Interface to map/wrap a downstreamFlow.Subscriberto an upstreamSubscriber.Represents a Reactive-Streams inspiredFlow.Subscriberthat is RxJava 4 only and weakens the Reactive Streams rules §1.3 and §3.9 of the specification for gaining performance.FlowableTransformer<Upstream, Downstream>Interface to composeFlowables.Maybe<T>TheMaybeclass represents a deferred computation and emission of a single value, no value at all or an exception.MaybeConverter<T,R> Convenience interface and callback used by theMaybe.to(MaybeConverter)operator to turn aMaybeinto another value fluently.MaybeEmitter<T>Abstraction over an RxJavaMaybeObserverthat allows associating a resource with it.Provides a mechanism for receiving push-based notification of a single value, an error or completion without any value.A functional interface that has asubscribe()method that receives aMaybeEmitterinstance that allows pushing an event in a cancellation-safe manner.MaybeOperator<Downstream, Upstream>Interface to map/wrap a downstreamMaybeObserverto an upstreamMaybeObserver.MaybeSource<T>Represents a basicMaybesource base interface, consumable via anMaybeObserver.MaybeTransformer<Upstream, Downstream>Interface to composeMaybes.Notification<T>Represents the reactive signal types:onNext,onErrorandonCompleteand holds their parameter values (a value, aThrowable, nothing).Observable<T>TheObservableclass is the non-backpressured, optionally multi-valued base reactive class that offers factory methods, intermediate operators and the ability to consume synchronous and/or asynchronous reactive dataflows.ObservableConverter<T,R> Convenience interface and callback used by theObservable.to(ObservableConverter)operator to turn anObservableinto another value fluently.Abstraction over an RxJavaObserverthat allows associating a resource with it.A functional interface that has asubscribe()method that receives anObservableEmitterinstance that allows pushing events in a cancellation-safe manner.ObservableOperator<Downstream, Upstream>Interface to map/wrap a downstreamObserverto an upstreamObserver.Represents a basic, non-backpressuredObservablesource base interface, consumable via anObserver.ObservableTransformer<Upstream, Downstream>Interface to composeObservables.Observer<T>Provides a mechanism for receiving push-based notifications.AScheduleris an object that specifies an API for scheduling units of work provided in the form ofRunnables to be executed without delay (effectively as soon as possible), after a specified time delay or periodically and represents an abstraction over an asynchronous boundary that ensures these units of work get executed by some underlying task-execution scheme (such as custom Threads, event loop,Executoror Actor system) with some uniform properties and guarantees regardless of the particular underlying scheme.Represents an isolated, sequential worker of a parent Scheduler for executingRunnabletasks on an underlying task-execution scheme (such as custom Threads, event loop,Executoror Actor system).Single<T>TheSingleclass implements the Reactive Pattern for a single value response.SingleConverter<T,R> Convenience interface and callback used by theSingle.to(SingleConverter)operator to turn aSingleinto another value fluently.Abstraction over an RxJavaSingleObserverthat allows associating a resource with it.Provides a mechanism for receiving push-based notification of a single value or an error.A functional interface that has asubscribe()method that receives aSingleEmitterinstance that allows pushing an event in a cancellation-safe manner.SingleOperator<Downstream, Upstream>Interface to map/wrap a downstreamSingleObserverto an upstreamSingleObserver.SingleSource<T>Represents a basicSinglesource base interface, consumable via anSingleObserver.SingleTransformer<Upstream, Downstream>Interface to composeSingles.