public final class NbpSubscriptionLambdaSubscriber<T> extends java.lang.Object implements NbpObservable.NbpSubscriber<T>, Disposable
| Constructor and Description |
|---|
NbpSubscriptionLambdaSubscriber(NbpObservable.NbpSubscriber<? super T> actual,
Consumer<? super Disposable> onSubscribe,
java.lang.Runnable onCancel) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose the resource, the operation should be idempotent.
|
void |
onComplete() |
void |
onError(java.lang.Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(Disposable s) |
public NbpSubscriptionLambdaSubscriber(NbpObservable.NbpSubscriber<? super T> actual, Consumer<? super Disposable> onSubscribe, java.lang.Runnable onCancel)
public void onSubscribe(Disposable s)
onSubscribe in interface NbpObservable.NbpSubscriber<T>public void onNext(T t)
onNext in interface NbpObservable.NbpSubscriber<T>public void onError(java.lang.Throwable t)
onError in interface NbpObservable.NbpSubscriber<T>public void onComplete()
onComplete in interface NbpObservable.NbpSubscriber<T>public void dispose()
Disposabledispose in interface Disposable