Uses of Interface
io.reactivex.rxjava3.core.SingleObserver
Packages that use SingleObserver
Package
Description
Base reactive classes:
Flowable, Observable,
Single, Maybe and
Completable; base reactive consumers;
other common base interfaces.Default wrappers and implementations for observer-based consumer classes and interfaces,
including disposable and resource-tracking variants and
the
TestObserver that allows unit testing
Observable-, Single-,
Maybe- and Completable-based flows.Contains the central plugin handler
RxJavaPlugins
class to hook into the lifecycle of the base reactive types and schedulers.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.
-
Uses of SingleObserver in io.reactivex.rxjava3.core
Methods in io.reactivex.rxjava3.core with type parameters of type SingleObserverModifier and TypeMethodDescriptionfinal <@NonNull E extends SingleObserver<? super @NonNull T>>
ESingle.subscribeWith(@NonNull E observer) Subscribes a givenSingleObserver(subclass) to thisSingleand returns the givenSingleObserveras is.Methods in io.reactivex.rxjava3.core that return SingleObserverModifier and TypeMethodDescription@NonNull SingleObserver<? super Upstream> SingleOperator.apply(@NonNull SingleObserver<? super @NonNull Downstream> observer) Applies a function to the childSingleObserverand returns a new parentSingleObserver.Methods in io.reactivex.rxjava3.core with parameters of type SingleObserverModifier and TypeMethodDescription@NonNull SingleObserver<? super Upstream> SingleOperator.apply(@NonNull SingleObserver<? super @NonNull Downstream> observer) Applies a function to the childSingleObserverand returns a new parentSingleObserver.final voidSingle.blockingSubscribe(@NonNull SingleObserver<? super @NonNull T> observer) Subscribes to the currentSingleand calls the appropriateSingleObservermethod on the current thread.final voidSingle.safeSubscribe(@NonNull SingleObserver<? super @NonNull T> observer) Wraps the givenSingleObserver, catches anyRuntimeExceptions thrown by itsSingleObserver.onSubscribe(Disposable),SingleObserver.onSuccess(Object)orSingleObserver.onError(Throwable)methods* and routes those to the global error handler viaRxJavaPlugins.onError(Throwable).final voidSingle.subscribe(@NonNull SingleObserver<? super @NonNull T> observer) voidSingleSource.subscribe(@NonNull SingleObserver<? super @NonNull T> observer) Subscribes the givenSingleObserverto thisSingleSourceinstance.protected abstract voidSingle.subscribeActual(@NonNull SingleObserver<? super @NonNull T> observer) Implement this method in subclasses to handle the incomingSingleObservers. -
Uses of SingleObserver in io.reactivex.rxjava3.internal.disposables
Methods in io.reactivex.rxjava3.internal.disposables with parameters of type SingleObserverModifier and TypeMethodDescriptionstatic voidEmptyDisposable.error(Throwable e, SingleObserver<?> observer) -
Uses of SingleObserver in io.reactivex.rxjava3.internal.jdk8
Classes in io.reactivex.rxjava3.internal.jdk8 that implement SingleObserverModifier and TypeClassDescriptionfinal classClass that extends CompletableFuture and converts multiple types of reactive consumers and their signals into completion signals.Methods in io.reactivex.rxjava3.internal.jdk8 with parameters of type SingleObserverModifier and TypeMethodDescriptionprotected voidFlowableCollectWithCollectorSingle.subscribeActual(@NonNull SingleObserver<? super R> observer) protected voidObservableCollectWithCollectorSingle.subscribeActual(@NonNull SingleObserver<? super R> observer) protected voidSingleFromCompletionStage.subscribeActual(SingleObserver<? super T> observer) -
Uses of SingleObserver in io.reactivex.rxjava3.internal.observers
Classes in io.reactivex.rxjava3.internal.observers that implement SingleObserverModifier and TypeClassDescriptionfinal classfinal classBlocks until the upstream terminates and dispatches the outcome to the actual observer.final classA combined Observer that awaits the success or error signal via a CountDownLatch.final classfinal classWraps lambda callbacks and when the upstream terminates or this (Single | Maybe | Completable) observer gets disposed, removes itself from aCompositeDisposable.final classAn Observer + Future that expects exactly one upstream value and provides it via the (blocking) Future API.final classA SingleObserver implementation used for subscribing to the actual SingleSource and replace the current Disposable in a parent AtomicReference.final classWraps anotherSingleObserverand catches exceptions thrown by itsonSubscribe,onSuccessoronErrormethods despite the protocol forbids it.Methods in io.reactivex.rxjava3.internal.observers with parameters of type SingleObserverModifier and TypeMethodDescriptionvoidBlockingDisposableMultiObserver.blockingConsume(SingleObserver<? super T> observer) Constructors in io.reactivex.rxjava3.internal.observers with parameters of type SingleObserverModifierConstructorDescriptionResumeSingleObserver(AtomicReference<Disposable> parent, SingleObserver<? super T> downstream) SafeSingleObserver(SingleObserver<? super T> downstream) -
Uses of SingleObserver in io.reactivex.rxjava3.internal.operators.completable
Methods in io.reactivex.rxjava3.internal.operators.completable with parameters of type SingleObserverModifier and TypeMethodDescriptionprotected voidCompletableMaterialize.subscribeActual(SingleObserver<? super Notification<T>> observer) protected voidCompletableToSingle.subscribeActual(SingleObserver<? super T> observer) -
Uses of SingleObserver in io.reactivex.rxjava3.internal.operators.flowable
Methods in io.reactivex.rxjava3.internal.operators.flowable with parameters of type SingleObserverModifier and TypeMethodDescriptionprotected voidFlowableAllSingle.subscribeActual(SingleObserver<? super Boolean> observer) protected voidFlowableAnySingle.subscribeActual(SingleObserver<? super Boolean> observer) protected voidFlowableCollectSingle.subscribeActual(SingleObserver<? super U> observer) protected voidFlowableCountSingle.subscribeActual(SingleObserver<? super Long> observer) protected voidFlowableElementAtSingle.subscribeActual(SingleObserver<? super T> observer) protected voidFlowableLastSingle.subscribeActual(SingleObserver<? super T> observer) protected voidFlowableReduceSeedSingle.subscribeActual(SingleObserver<? super R> observer) protected voidFlowableReduceWithSingle.subscribeActual(SingleObserver<? super R> observer) voidFlowableSequenceEqualSingle.subscribeActual(SingleObserver<? super Boolean> observer) protected voidFlowableSingleSingle.subscribeActual(SingleObserver<? super T> observer) protected voidFlowableToListSingle.subscribeActual(SingleObserver<? super U> observer) -
Uses of SingleObserver in io.reactivex.rxjava3.internal.operators.maybe
Classes in io.reactivex.rxjava3.internal.operators.maybe that implement SingleObserverModifier and TypeClassDescriptionstatic final classMethods in io.reactivex.rxjava3.internal.operators.maybe with parameters of type SingleObserverModifier and TypeMethodDescriptionprotected voidMaybeContains.subscribeActual(SingleObserver<? super Boolean> observer) protected voidMaybeCount.subscribeActual(SingleObserver<? super Long> observer) protected voidMaybeEqualSingle.subscribeActual(SingleObserver<? super Boolean> observer) protected voidMaybeIsEmptySingle.subscribeActual(SingleObserver<? super Boolean> observer) protected voidMaybeMaterialize.subscribeActual(SingleObserver<? super Notification<T>> observer) protected voidMaybeSwitchIfEmptySingle.subscribeActual(SingleObserver<? super T> observer) protected voidMaybeToSingle.subscribeActual(SingleObserver<? super T> observer) -
Uses of SingleObserver in io.reactivex.rxjava3.internal.operators.mixed
Classes in io.reactivex.rxjava3.internal.operators.mixed that implement SingleObserverModifier and TypeClassDescriptionfinal classA consumer that implements the consumer types of Maybe, Single and Completable and turns their signals into Notifications for a SingleObserver.Constructors in io.reactivex.rxjava3.internal.operators.mixed with parameters of type SingleObserverModifierConstructorDescriptionMaterializeSingleObserver(SingleObserver<? super Notification<T>> downstream) -
Uses of SingleObserver in io.reactivex.rxjava3.internal.operators.observable
Methods in io.reactivex.rxjava3.internal.operators.observable with parameters of type SingleObserverModifier and TypeMethodDescriptionprotected voidObservableAllSingle.subscribeActual(SingleObserver<? super Boolean> t) protected voidObservableAnySingle.subscribeActual(SingleObserver<? super Boolean> t) protected voidObservableCollectSingle.subscribeActual(SingleObserver<? super U> t) voidObservableCountSingle.subscribeActual(SingleObserver<? super Long> t) voidObservableElementAtSingle.subscribeActual(SingleObserver<? super T> t) protected voidObservableLastSingle.subscribeActual(SingleObserver<? super T> observer) protected voidObservableReduceSeedSingle.subscribeActual(SingleObserver<? super R> observer) protected voidObservableReduceWithSingle.subscribeActual(SingleObserver<? super R> observer) voidObservableSequenceEqualSingle.subscribeActual(SingleObserver<? super Boolean> observer) voidObservableSingleSingle.subscribeActual(SingleObserver<? super T> t) voidObservableToListSingle.subscribeActual(SingleObserver<? super U> t) -
Uses of SingleObserver in io.reactivex.rxjava3.internal.operators.single
Classes in io.reactivex.rxjava3.internal.operators.single that implement SingleObserverMethods in io.reactivex.rxjava3.internal.operators.single that return SingleObserverModifier and TypeMethodDescriptionstatic <T> SingleObserver<T> Creates aSingleObserverwrapper around aObserver.Methods in io.reactivex.rxjava3.internal.operators.single with parameters of type SingleObserverModifier and TypeMethodDescriptionprotected voidSingleAmb.subscribeActual(SingleObserver<? super T> observer) protected voidSingleCache.subscribeActual(SingleObserver<? super T> observer) protected voidSingleContains.subscribeActual(SingleObserver<? super Boolean> observer) protected voidSingleCreate.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDefer.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDelay.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDelayWithCompletable.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDelayWithObservable.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDelayWithPublisher.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDelayWithSingle.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDetach.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDoAfterSuccess.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDoAfterTerminate.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDoFinally.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDoOnDispose.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDoOnError.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDoOnEvent.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDoOnLifecycle.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDoOnSubscribe.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDoOnSuccess.subscribeActual(SingleObserver<? super T> observer) protected voidSingleDoOnTerminate.subscribeActual(SingleObserver<? super T> observer) protected voidSingleEquals.subscribeActual(SingleObserver<? super Boolean> observer) protected voidSingleError.subscribeActual(SingleObserver<? super T> observer) protected voidSingleFlatMap.subscribeActual(SingleObserver<? super R> downstream) protected voidSingleFlatMapBiSelector.subscribeActual(SingleObserver<? super R> observer) protected voidSingleFlatMapNotification.subscribeActual(SingleObserver<? super R> observer) protected voidSingleFromCallable.subscribeActual(SingleObserver<? super T> observer) protected voidSingleFromPublisher.subscribeActual(SingleObserver<? super T> observer) protected voidSingleFromSupplier.subscribeActual(SingleObserver<? super T> observer) protected voidSingleFromUnsafeSource.subscribeActual(SingleObserver<? super T> observer) protected voidSingleHide.subscribeActual(SingleObserver<? super T> observer) protected voidSingleJust.subscribeActual(SingleObserver<? super T> observer) protected voidSingleLift.subscribeActual(SingleObserver<? super R> observer) protected voidSingleMap.subscribeActual(SingleObserver<? super R> t) protected voidSingleMaterialize.subscribeActual(SingleObserver<? super Notification<T>> observer) protected voidSingleNever.subscribeActual(SingleObserver<? super Object> observer) protected voidSingleObserveOn.subscribeActual(SingleObserver<? super T> observer) protected voidSingleOnErrorReturn.subscribeActual(SingleObserver<? super T> observer) protected voidSingleResumeNext.subscribeActual(SingleObserver<? super T> observer) protected voidSingleSubscribeOn.subscribeActual(SingleObserver<? super T> observer) protected voidSingleTakeUntil.subscribeActual(SingleObserver<? super T> observer) protected voidSingleTimeInterval.subscribeActual(@NonNull SingleObserver<? super @NonNull Timed<T>> observer) protected voidSingleTimeout.subscribeActual(SingleObserver<? super T> observer) protected voidSingleTimer.subscribeActual(SingleObserver<? super Long> observer) protected voidSingleUnsubscribeOn.subscribeActual(SingleObserver<? super T> observer) protected voidSingleUsing.subscribeActual(SingleObserver<? super T> observer) protected voidSingleZipArray.subscribeActual(SingleObserver<? super R> observer) protected voidSingleZipIterable.subscribeActual(SingleObserver<? super R> observer) -
Uses of SingleObserver in io.reactivex.rxjava3.internal.util
Classes in io.reactivex.rxjava3.internal.util that implement SingleObserverModifier and TypeClassDescriptionenumSingleton implementing many interfaces as empty.Methods in io.reactivex.rxjava3.internal.util with parameters of type SingleObserverModifier and TypeMethodDescriptionvoidAtomicThrowable.tryTerminateConsumer(SingleObserver<?> consumer) Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator) and notifies the consumer if there was no error (onComplete) or there was a non-null, non-indicator exception contained before (onError). -
Uses of SingleObserver in io.reactivex.rxjava3.observers
Classes in io.reactivex.rxjava3.observers that implement SingleObserverModifier and TypeClassDescriptionclassAn abstractSingleObserverthat allows asynchronous cancellation by implementingDisposable.classAn abstractSingleObserverthat allows asynchronous cancellation of its subscription and the associated resources.classTestObserver<T>AnObserver,MaybeObserver,SingleObserverandCompletableObservercomposite that can record events fromObservables,Maybes,Singles andCompletables and allows making assertions about them. -
Uses of SingleObserver in io.reactivex.rxjava3.plugins
Methods in io.reactivex.rxjava3.plugins that return SingleObserverModifier and TypeMethodDescriptionstatic <@NonNull T>
@NonNull SingleObserver<? super T> RxJavaPlugins.onSubscribe(@NonNull Single<@NonNull T> source, @NonNull SingleObserver<? super @NonNull T> observer) Calls the associated hook function.Methods in io.reactivex.rxjava3.plugins that return types with arguments of type SingleObserverModifier and TypeMethodDescriptionstatic @Nullable BiFunction<? super Single, @NonNull ? super SingleObserver, @NonNull ? extends SingleObserver> RxJavaPlugins.getOnSingleSubscribe()Returns the current hook function.static @Nullable BiFunction<? super Single, @NonNull ? super SingleObserver, @NonNull ? extends SingleObserver> RxJavaPlugins.getOnSingleSubscribe()Returns the current hook function.Methods in io.reactivex.rxjava3.plugins with parameters of type SingleObserverModifier and TypeMethodDescriptionstatic <@NonNull T>
@NonNull SingleObserver<? super T> RxJavaPlugins.onSubscribe(@NonNull Single<@NonNull T> source, @NonNull SingleObserver<? super @NonNull T> observer) Calls the associated hook function.Method parameters in io.reactivex.rxjava3.plugins with type arguments of type SingleObserverModifier and TypeMethodDescriptionstatic voidRxJavaPlugins.setOnSingleSubscribe(@Nullable BiFunction<? super Single, @NonNull ? super SingleObserver, @NonNull ? extends SingleObserver> onSingleSubscribe) Sets the specific hook function.static voidRxJavaPlugins.setOnSingleSubscribe(@Nullable BiFunction<? super Single, @NonNull ? super SingleObserver, @NonNull ? extends SingleObserver> onSingleSubscribe) Sets the specific hook function. -
Uses of SingleObserver in io.reactivex.rxjava3.subjects
Classes in io.reactivex.rxjava3.subjects that implement SingleObserverModifier and TypeClassDescriptionfinal classRepresents a hot Single-like source and consumer of events similar to Subjects.Methods in io.reactivex.rxjava3.subjects with parameters of type SingleObserverModifier and TypeMethodDescriptionprotected voidSingleSubject.subscribeActual(@NonNull SingleObserver<? super T> observer)