Class FlowableFromCompletable.FromCompletableObserver<T>
- java.lang.Object
-
- io.reactivex.rxjava3.internal.fuseable.AbstractEmptyQueueFuseable<T>
-
- io.reactivex.rxjava3.internal.operators.flowable.FlowableFromCompletable.FromCompletableObserver<T>
-
- All Implemented Interfaces:
CompletableObserver
,Disposable
,QueueDisposable<T>
,QueueFuseable<T>
,QueueSubscription<T>
,SimpleQueue<T>
,org.reactivestreams.Subscription
- Enclosing class:
- FlowableFromCompletable<T>
public static final class FlowableFromCompletable.FromCompletableObserver<T> extends AbstractEmptyQueueFuseable<T> implements CompletableObserver
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.reactivestreams.Subscriber<? super T>
downstream
(package private) Disposable
upstream
-
Constructor Summary
Constructors Constructor Description FromCompletableObserver(org.reactivestreams.Subscriber<? super T> downstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
void
onComplete()
Called once the deferred computation completes normally.void
onError(java.lang.Throwable e)
Called once if the deferred computation 'throws' an exception.void
onSubscribe(Disposable d)
Called once by theCompletable
to set aDisposable
on this instance which then can be used to cancel the subscription at any time.-
Methods inherited from class io.reactivex.rxjava3.internal.fuseable.AbstractEmptyQueueFuseable
clear, dispose, isDisposed, isEmpty, offer, offer, poll, request, requestFusion
-
-
-
-
Field Detail
-
downstream
final org.reactivestreams.Subscriber<? super T> downstream
-
upstream
Disposable upstream
-
-
Constructor Detail
-
FromCompletableObserver
public FromCompletableObserver(org.reactivestreams.Subscriber<? super T> downstream)
-
-
Method Detail
-
cancel
public void cancel()
- Specified by:
cancel
in interfaceorg.reactivestreams.Subscription
- Overrides:
cancel
in classAbstractEmptyQueueFuseable<T>
-
onSubscribe
public void onSubscribe(Disposable d)
Description copied from interface:CompletableObserver
Called once by theCompletable
to set aDisposable
on this instance which then can be used to cancel the subscription at any time.- Specified by:
onSubscribe
in interfaceCompletableObserver
- Parameters:
d
- theDisposable
instance to call dispose on for cancellation, not null
-
onComplete
public void onComplete()
Description copied from interface:CompletableObserver
Called once the deferred computation completes normally.- Specified by:
onComplete
in interfaceCompletableObserver
-
onError
public void onError(java.lang.Throwable e)
Description copied from interface:CompletableObserver
Called once if the deferred computation 'throws' an exception.- Specified by:
onError
in interfaceCompletableObserver
- Parameters:
e
- the exception, notnull
.
-
-