public final class NbpBlockingSubscriber<T> extends java.util.concurrent.atomic.AtomicReference<Disposable> implements NbpObservable.NbpSubscriber<T>, Disposable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Object |
TERMINATED |
| Constructor and Description |
|---|
NbpBlockingSubscriber(java.util.Queue<java.lang.Object> queue) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose the resource, the operation should be idempotent.
|
boolean |
isCancelled() |
void |
onComplete() |
void |
onError(java.lang.Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(Disposable s) |
public NbpBlockingSubscriber(java.util.Queue<java.lang.Object> queue)
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 Disposablepublic boolean isCancelled()