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
FieldsModifier and TypeFieldDescription(package private) final org.reactivestreams.Subscriber
<? super T> (package private) Disposable
-
Constructor Summary
ConstructorsConstructorDescriptionFromCompletableObserver
(org.reactivestreams.Subscriber<? super T> downstream) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
void
Called once the deferred computation completes normally.void
Called once if the deferred computation 'throws' an exception.void
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 Details
-
downstream
-
upstream
Disposable upstream
-
-
Constructor Details
-
FromCompletableObserver
-
-
Method Details
-
cancel
public void cancel()- Specified by:
cancel
in interfaceorg.reactivestreams.Subscription
- Overrides:
cancel
in classAbstractEmptyQueueFuseable<T>
-
onSubscribe
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
Description copied from interface:CompletableObserver
Called once if the deferred computation 'throws' an exception.- Specified by:
onError
in interfaceCompletableObserver
- Parameters:
e
- the exception, notnull
.
-