Package io.reactivex.rxjava4.core


package io.reactivex.rxjava4.core
Base reactive classes: 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
The Single and Completable reactive base types have no equivalent in Rx.NET as of 3.x.

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
classes.

  • Class
    Description
    Options to deal with buffer overflow when using onBackpressureBuffer.
    Represents the options for applying backpressure to a source sequence.
    The Completable class represents a deferred computation without any value but only indication for completion or exception.
    Convenience interface and callback used by the Completable.to(CompletableConverter) operator to turn a Completable into another value fluently.
    Abstraction over an RxJava CompletableObserver that 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 a subscribe() method that receives a CompletableEmitter instance that allows pushing an event in a cancellation-safe manner.
    Interface to map/wrap a downstream observer to an upstream observer.
    Represents a basic Completable source base interface, consumable via an CompletableObserver.
    Convenience interface and callback used by the compose operator to turn a Completable into another Completable fluently.
    Base interface for emitting signals in a push-fashion in various generator-like source operators (create, generate).
    The Flowable class that implements the Reactive Streams Flow.Publisher Pattern and offers factory methods, intermediate operators and the ability to consume reactive dataflows.
    Convenience interface and callback used by the Flowable.to(FlowableConverter) operator to turn a Flowable into another value fluently.
    Abstraction over a Reactive Streams
    invalid reference
    org.reactivestreams.Subscriber
    that allows associating a resource with it and exposes the current number of downstream requested amount.
    A functional interface that has a subscribe() method that receives a FlowableEmitter instance that allows pushing events in a backpressure-safe and cancellation-safe manner.
    FlowableOperator<Downstream, Upstream>
    Interface to map/wrap a downstream Flow.Subscriber to an upstream Subscriber.
    Represents a Reactive-Streams inspired Flow.Subscriber that 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 compose Flowables.
    The Maybe class represents a deferred computation and emission of a single value, no value at all or an exception.
    Convenience interface and callback used by the Maybe.to(MaybeConverter) operator to turn a Maybe into another value fluently.
    Abstraction over an RxJava MaybeObserver that 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 a subscribe() method that receives a MaybeEmitter instance that allows pushing an event in a cancellation-safe manner.
    MaybeOperator<Downstream, Upstream>
    Interface to map/wrap a downstream MaybeObserver to an upstream MaybeObserver.
    Represents a basic Maybe source base interface, consumable via an MaybeObserver.
    MaybeTransformer<Upstream, Downstream>
    Interface to compose Maybes.
    Represents the reactive signal types: onNext, onError and onComplete and holds their parameter values (a value, a Throwable, nothing).
    The Observable class 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.
    Convenience interface and callback used by the Observable.to(ObservableConverter) operator to turn an Observable into another value fluently.
    Abstraction over an RxJava Observer that allows associating a resource with it.
    A functional interface that has a subscribe() method that receives an ObservableEmitter instance that allows pushing events in a cancellation-safe manner.
    ObservableOperator<Downstream, Upstream>
    Interface to map/wrap a downstream Observer to an upstream Observer.
    Represents a basic, non-backpressured Observable source base interface, consumable via an Observer.
    ObservableTransformer<Upstream, Downstream>
    Interface to compose Observables.
    Provides a mechanism for receiving push-based notifications.
    A Scheduler is an object that specifies an API for scheduling units of work provided in the form of Runnables 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, Executor or Actor system) with some uniform properties and guarantees regardless of the particular underlying scheme.
    Represents an isolated, sequential worker of a parent Scheduler for executing Runnable tasks on an underlying task-execution scheme (such as custom Threads, event loop, Executor or Actor system).
    The Single class implements the Reactive Pattern for a single value response.
    Convenience interface and callback used by the Single.to(SingleConverter) operator to turn a Single into another value fluently.
    Abstraction over an RxJava SingleObserver that 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 a subscribe() method that receives a SingleEmitter instance that allows pushing an event in a cancellation-safe manner.
    SingleOperator<Downstream, Upstream>
    Interface to map/wrap a downstream SingleObserver to an upstream SingleObserver.
    Represents a basic Single source base interface, consumable via an SingleObserver.
    SingleTransformer<Upstream, Downstream>
    Interface to compose Singles.