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

public final Class SafeMaybeObserver<T>

extends Object
implements MaybeObserver<T>
Class Inheritance
All Implemented Interfaces
io.reactivex.rxjava3.core.MaybeObserver
Type Parameters
<T>
the element type of the sequence
Imports
io.reactivex.rxjava3.annotations.NonNull, io.reactivex.rxjava3.core.MaybeObserver, io.reactivex.rxjava3.disposables.Disposable, io.reactivex.rxjava3.exceptions.*, io.reactivex.rxjava3.plugins.RxJavaPlugins

Wraps another MaybeObserver and catches exceptions thrown by its onSubscribe, onSuccess, onError or onComplete methods despite the protocol forbids it.

Such exceptions are routed to the RxJavaPlugins#onError(Throwable) handler.

Since
3.0.0

Field Summary

Modifier and TypeField and Description
pack-priv final MaybeObserver<? super T>
pack-priv boolean

Constructor Summary

AccessConstructor and Description
public
SafeMaybeObserver(MaybeObserver<? super T> downstream)

Method Summary

Modifier and TypeMethod and Description
public void
onComplete()

Implements io.reactivex.rxjava3.core.MaybeObserver.onComplete.

Called once the deferred computation completes normally.
public void
public void
public void
onSuccess(T
the item emitted by the Maybe
t
)

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

Notifies the MaybeObserver with one item and that the Maybe has finished sending push-based notifications.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

downstreamback to summary
pack-priv final MaybeObserver<? super T> downstream
onSubscribeFailedback to summary
pack-priv boolean onSubscribeFailed

Constructor Detail

SafeMaybeObserverback to summary
public SafeMaybeObserver(MaybeObserver<? super T> downstream)

Method Detail

onCompleteback to summary
public void onComplete()

Implements io.reactivex.rxjava3.core.MaybeObserver.onComplete.

Doc from io.reactivex.rxjava3.core.MaybeObserver.onComplete.

Called once the deferred computation completes normally.

Annotations
@Override
onErrorback to summary
public void onError(@NonNull Throwable e)
Annotations
@Override
onSubscribeback to summary
public void onSubscribe(@NonNull Disposable d)
Annotations
@Override
onSuccessback to summary
public void onSuccess(T t)

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

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

Notifies the MaybeObserver with one item and that the Maybe has finished sending push-based notifications.

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

Parameters
t:T

the item emitted by the Maybe

Annotations
@Override