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

public final Class BlockingDisposableMultiObserver<T>

extends CountDownLatch
implements MaybeObserver<T>, SingleObserver<T>, CompletableObserver, Disposable
Class Inheritance
All Implemented Interfaces
io.reactivex.rxjava3.disposables.Disposable, io.reactivex.rxjava3.core.CompletableObserver, io.reactivex.rxjava3.core.SingleObserver, io.reactivex.rxjava3.core.MaybeObserver
Type Parameters
<T>
the element type of the source
Imports
java.util.concurrent.CountDownLatch, io.reactivex.rxjava3.annotations.NonNull, io.reactivex.rxjava3.core.*, io.reactivex.rxjava3.disposables.Disposable, io.reactivex.rxjava3.internal.disposables.*, io.reactivex.rxjava3.internal.util.BlockingHelper

Blocks until the upstream terminates and dispatches the outcome to the actual observer.
Since
3.0.0

Field Summary

Modifier and TypeField and Description
pack-priv Throwable
pack-priv final SequentialDisposable
pack-priv T

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
blockingConsume(SingleObserver<? super T> observer)

public void
blockingConsume(MaybeObserver<? super T> observer)

public void
dispose()

Implements io.reactivex.rxjava3.disposables.Disposable.dispose.

Dispose the resource, the operation should be idempotent.
public boolean
isDisposed()

Implements io.reactivex.rxjava3.disposables.Disposable.isDisposed.

Returns true if this resource has been disposed.
public void
public void
public void
public void
onSuccess(T
the item emitted by the Maybe
t
)

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

Notifies the MaybeObserver with one item and that the Maybe has finished sending push-based notifications.
Inherited from java.util.concurrent.CountDownLatch:
awaitawaitcountDowngetCounttoString

Field Detail

errorback to summary
pack-priv Throwable error
upstreamback to summary
pack-priv final SequentialDisposable upstream
valueback to summary
pack-priv T value

Constructor Detail

BlockingDisposableMultiObserverback to summary
public BlockingDisposableMultiObserver()

Method Detail

blockingConsumeback to summary
public void blockingConsume(CompletableObserver observer)
blockingConsumeback to summary
public void blockingConsume(SingleObserver<? super T> observer)
blockingConsumeback to summary
public void blockingConsume(MaybeObserver<? super T> observer)
disposeback to summary
public void dispose()

Implements io.reactivex.rxjava3.disposables.Disposable.dispose.

Doc from io.reactivex.rxjava3.disposables.Disposable.dispose.

Dispose the resource, the operation should be idempotent.

Annotations
@Override
isDisposedback to summary
public boolean isDisposed()

Implements io.reactivex.rxjava3.disposables.Disposable.isDisposed.

Doc from io.reactivex.rxjava3.disposables.Disposable.isDisposed.

Returns true if this resource has been disposed.

Returns:boolean

true if this resource has been disposed

Annotations
@Override
onCompleteback to summary
public void onComplete()

Implements io.reactivex.rxjava3.core.MaybeObserver.onComplete, io.reactivex.rxjava3.core.CompletableObserver.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, io.reactivex.rxjava3.core.SingleObserver.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