Top Description Fields Constructors Methods
io.reactivex.rxjava3.internal.observers

public final Class DisposableAutoReleaseMultiObserver<T>

extends AbstractDisposableAutoRelease
implements SingleObserver<T>, MaybeObserver<T>, CompletableObserver
Class Inheritance
All Implemented Interfaces
io.reactivex.rxjava3.core.CompletableObserver, io.reactivex.rxjava3.core.MaybeObserver, io.reactivex.rxjava3.core.SingleObserver
Type Parameters
<T>
the element type consumed
Imports
io.reactivex.rxjava3.core.*, io.reactivex.rxjava3.disposables.DisposableContainer, io.reactivex.rxjava3.exceptions.Exceptions, io.reactivex.rxjava3.functions.*, io.reactivex.rxjava3.internal.disposables.DisposableHelper, io.reactivex.rxjava3.plugins.RxJavaPlugins

Wraps lambda callbacks and when the upstream terminates or this (Single | Maybe | Completable) observer gets disposed, removes itself from a io.reactivex.rxjava3.disposables.CompositeDisposable.

History: 0.18.0 @ RxJavaExtensions

Since
3.1.0

Field Summary

Modifier and TypeField and Description
pack-priv final Consumer<? super T>
private static final long
Inherited from io.reactivex.rxjava3.internal.observers.AbstractDisposableAutoRelease:
compositeonCompleteonError

Constructor Summary

AccessConstructor and Description
public
DisposableAutoReleaseMultiObserver(DisposableContainer composite, Consumer<? super T> onSuccess, Consumer<? super Throwable> onError, Action onComplete)

Method Summary

Modifier and TypeMethod and Description
public void
onSuccess(T
the item emitted by the Single
t
)

Implements io.reactivex.rxjava3.core.SingleObserver.onSuccess, io.reactivex.rxjava3.core.MaybeObserver.onSuccess.

Notifies the SingleObserver with a single item and that the Single has finished sending push-based notifications.
Inherited from io.reactivex.rxjava3.internal.observers.AbstractDisposableAutoRelease:
disposehasCustomOnErrorisDisposedonCompleteonErroronSubscriberemoveSelf

Field Detail

onSuccessback to summary
pack-priv final Consumer<? super T> onSuccess
serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.reactivex.rxjava3.internal.observers.AbstractDisposableAutoRelease.serialVersionUID.

Constructor Detail

DisposableAutoReleaseMultiObserverback to summary
public DisposableAutoReleaseMultiObserver(DisposableContainer composite, Consumer<? super T> onSuccess, Consumer<? super Throwable> onError, Action onComplete)

Method Detail

onSuccessback to summary
public void onSuccess(T t)

Implements io.reactivex.rxjava3.core.SingleObserver.onSuccess, io.reactivex.rxjava3.core.MaybeObserver.onSuccess.

Doc from io.reactivex.rxjava3.core.SingleObserver.onSuccess.

Notifies the SingleObserver with a single item and that the Single has finished sending push-based notifications.

The Single will not call this method if it calls onError.

Parameters
t:T

the item emitted by the Single

Annotations
@Override