/* * Copyright (c) 2016-present, RxJava Contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See * the License for the specific language governing permissions and limitations under the License. */ /** * Classes representing so-called hot sources, aka subjects, that implement a base reactive class and * the respective consumer type at once to allow forms of multicasting events to multiple * consumers as well as consuming another base reactive type of their kind. *
* Available subject classes with their respective base classes and consumer interfaces:
*
*
| Subject type | Base class | Consumer interface |
| {@link io.reactivex.rxjava3.subjects.Subject Subject}
* {@link io.reactivex.rxjava3.subjects.AsyncSubject AsyncSubject} * {@link io.reactivex.rxjava3.subjects.BehaviorSubject BehaviorSubject} * {@link io.reactivex.rxjava3.subjects.PublishSubject PublishSubject} * {@link io.reactivex.rxjava3.subjects.ReplaySubject ReplaySubject} * {@link io.reactivex.rxjava3.subjects.UnicastSubject UnicastSubject} * |
* {@link io.reactivex.rxjava3.core.Observable Observable} | *{@link io.reactivex.rxjava3.core.Observer Observer} | *
| {@link io.reactivex.rxjava3.subjects.SingleSubject SingleSubject} | *{@link io.reactivex.rxjava3.core.Single Single} | *{@link io.reactivex.rxjava3.core.SingleObserver SingleObserver} | *
| {@link io.reactivex.rxjava3.subjects.MaybeSubject MaybeSubject} | *{@link io.reactivex.rxjava3.core.Maybe Maybe} | *{@link io.reactivex.rxjava3.core.MaybeObserver MaybeObserver} | *
| {@link io.reactivex.rxjava3.subjects.CompletableSubject CompletableSubject} | *{@link io.reactivex.rxjava3.core.Completable Completable} | *{@link io.reactivex.rxjava3.core.CompletableObserver CompletableObserver} | *
* The backpressure-aware variants of the {@code Subject} class are called * {@link org.reactivestreams.Processor}s and reside in the {@code io.reactivex.processors} package. * @see io.reactivex.rxjava3.processors */ package io.reactivex.rxjava3.subjects;