Package rx
Interface Completable.CompletableSubscriber
-
- All Known Implementing Classes:
AsyncCompletableSubscriber
,CompletableOnSubscribeConcat.CompletableConcatSubscriber.ConcatInnerSubscriber
,CompletableOnSubscribeConcatArray.ConcatInnerSubscriber
,CompletableOnSubscribeConcatIterable.ConcatInnerSubscriber
,OnSubscribeOnAssemblyCompletable.OnAssemblyCompletableSubscriber
,SafeCompletableSubscriber
- Enclosing class:
- Completable
public static interface Completable.CompletableSubscriber
Represents the subscription API callbacks when subscribing to a Completable instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onCompleted()
Called once the deferred computation completes normally.void
onError(java.lang.Throwable e)
Called once if the deferred computation 'throws' an exception.void
onSubscribe(Subscription d)
Called once by the Completable to set a Subscription on this instance which then can be used to cancel the subscription at any time.
-
-
-
Method Detail
-
onCompleted
void onCompleted()
Called once the deferred computation completes normally.
-
onError
void onError(java.lang.Throwable e)
Called once if the deferred computation 'throws' an exception.- Parameters:
e
- the exception, not null.
-
onSubscribe
void onSubscribe(Subscription d)
Called once by the Completable to set a Subscription on this instance which then can be used to cancel the subscription at any time.- Parameters:
d
- the Subscription instance to call dispose on for cancellation, not null
-
-