T - the source type to which this subscriber will be subscribedU - the value type in the queueV - the value type the child subscriber acceptspublic abstract class NbpQueueDrainSubscriber<T,U,V> extends java.lang.Object implements NbpObservable.NbpSubscriber<T>, NbpQueueDrain<U,V>
| Modifier and Type | Field and Description |
|---|---|
protected NbpObservable.NbpSubscriber<? super V> |
actual |
protected boolean |
cancelled |
protected boolean |
done |
protected java.lang.Throwable |
error |
protected java.util.Queue<U> |
queue |
| Constructor and Description |
|---|
NbpQueueDrainSubscriber(NbpObservable.NbpSubscriber<? super V> actual,
java.util.Queue<U> queue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelled() |
boolean |
done() |
void |
drain(boolean delayError,
Disposable dispose) |
boolean |
enter() |
java.lang.Throwable |
error() |
boolean |
fastEnter() |
protected void |
fastpathEmit(U value,
boolean delayError,
Disposable dispose) |
protected void |
fastpathOrderedEmit(U value,
boolean delayError,
Disposable disposable)
Makes sure the fast-path emits in order.
|
int |
leave(int m)
Adds m to the wip counter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonComplete, onError, onNext, onSubscribeacceptprotected final NbpObservable.NbpSubscriber<? super V> actual
protected final java.util.Queue<U> queue
protected volatile boolean cancelled
protected volatile boolean done
protected java.lang.Throwable error
public NbpQueueDrainSubscriber(NbpObservable.NbpSubscriber<? super V> actual, java.util.Queue<U> queue)
public final boolean cancelled()
cancelled in interface NbpQueueDrain<U,V>public final boolean done()
done in interface NbpQueueDrain<U,V>public final boolean enter()
enter in interface NbpQueueDrain<U,V>public final boolean fastEnter()
protected final void fastpathEmit(U value, boolean delayError, Disposable dispose)
protected final void fastpathOrderedEmit(U value, boolean delayError, Disposable disposable)
value - delayError - public final java.lang.Throwable error()
error in interface NbpQueueDrain<U,V>public final int leave(int m)
NbpQueueDrainleave in interface NbpQueueDrain<U,V>m - the value to addpublic void drain(boolean delayError,
Disposable dispose)