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 QueueDrainSubscriber<T,U,V> extends java.lang.Object implements org.reactivestreams.Subscriber<T>, QueueDrain<U,V>
| Modifier and Type | Field and Description |
|---|---|
protected org.reactivestreams.Subscriber<? super V> |
actual |
protected boolean |
cancelled |
protected boolean |
done |
protected java.lang.Throwable |
error |
protected java.util.Queue<U> |
queue |
| Constructor and Description |
|---|
QueueDrainSubscriber(org.reactivestreams.Subscriber<? super V> actual,
java.util.Queue<U> queue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelled() |
boolean |
done() |
void |
drain(boolean delayError) |
boolean |
enter() |
java.lang.Throwable |
error() |
boolean |
fastEnter() |
protected void |
fastpathEmit(U value,
boolean delayError) |
protected void |
fastpathEmitMax(U value,
boolean delayError,
Disposable dispose) |
protected void |
fastpathOrderedEmit(U value,
boolean delayError)
Makes sure the fast-path emits in order.
|
protected void |
fastpathOrderedEmitMax(U value,
boolean delayError,
Disposable dispose) |
int |
leave(int m)
Adds m to the wip counter.
|
long |
produced(long n) |
long |
requested() |
void |
requested(long n) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonComplete, onError, onNext, onSubscribeacceptprotected final org.reactivestreams.Subscriber<? super V> actual
protected final java.util.Queue<U> queue
protected volatile boolean cancelled
protected volatile boolean done
protected java.lang.Throwable error
public final boolean cancelled()
cancelled in interface QueueDrain<U,V>public final boolean done()
done in interface QueueDrain<U,V>public final boolean enter()
enter in interface QueueDrain<U,V>public final boolean fastEnter()
protected final void fastpathEmit(U value, boolean delayError)
protected final void fastpathEmitMax(U value, boolean delayError, Disposable dispose)
protected final void fastpathOrderedEmitMax(U value, boolean delayError, Disposable dispose)
protected final void fastpathOrderedEmit(U value, boolean delayError)
value - delayError - public final java.lang.Throwable error()
error in interface QueueDrain<U,V>public final int leave(int m)
QueueDrainleave in interface QueueDrain<U,V>m - the value to addpublic final long requested()
requested in interface QueueDrain<U,V>public final long produced(long n)
produced in interface QueueDrain<U,V>public final void requested(long n)
public void drain(boolean delayError)