| Modifier and Type | Field and Description |
|---|---|
| protected boolean | done
Flag indicating no further onXXX event should be accepted. |
| protected final Subscriber | downstream
The downstream subscriber. |
| protected QueueSubscription | qs
The upstream's QueueSubscription if not null. |
| protected int | sourceMode
Holds the established fusion mode of the upstream. |
| protected Subscription | upstream
The upstream subscription. |
| Access | Constructor and Description |
|---|---|
| public | BasicFuseableSubscriber(Subscriber<? super R>
the subscriber, not null (not verified) downstream)Construct a BasicFuseableSubscriber by wrapping the given subscriber. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | afterDownstream()
Override this to perform actions after the call to |
| protected boolean | Returns: true if onSubscribe should continue with the callOverride this to perform actions before the call |
| public void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| public void | clear()
Implements io. |
| protected final void | fail(Throwable
the throwable to rethrow or signal to the actual subscriber t)Rethrows the throwable if it is a fatal exception or calls |
| public boolean | isEmpty()
Implements io. |
| public final boolean | offer(R
the value to enqueue, not null e)Implements io. |
| public final boolean | offer(R
the first value to enqueue, not null v1, R the second value to enqueue, not null v2)Implements io. |
| public void | |
| public void | onError(Throwable
the throwable signaled t)Implements org. |
| public final void | onSubscribe(Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements io. onNext(Object) is established before
calling Subscription#request(long).
|
| public void | request(long
the strictly positive number of elements to requests to the upstream n)PublisherImplements org. Publisher until demand is signaled via this method.
|
| protected final int | Returns: the established fusion modethe fusion mode requested mode)Calls the upstream's QueueSubscription.requestFusion with the mode and
saves the established mode in |
| done | back to summary |
|---|---|
| protected boolean done Flag indicating no further onXXX event should be accepted. | |
| downstream | back to summary |
|---|---|
| protected final Subscriber<? super R> downstream The downstream subscriber. | |
| qs | back to summary |
|---|---|
| protected QueueSubscription<T> qs The upstream's QueueSubscription if not null. | |
| sourceMode | back to summary |
|---|---|
| protected int sourceMode Holds the established fusion mode of the upstream. | |
| upstream | back to summary |
|---|---|
| protected Subscription upstream The upstream subscription. | |
| BasicFuseableSubscriber | back to summary |
|---|---|
| public BasicFuseableSubscriber(Subscriber<? super R> downstream) Construct a BasicFuseableSubscriber by wrapping the given subscriber.
| |
| afterDownstream | back to summary |
|---|---|
| protected void afterDownstream() Override this to perform actions after the call to | |
| beforeDownstream | back to summary |
|---|---|
| protected boolean beforeDownstream() Override this to perform actions before the call
| |
| cancel | back to summary |
|---|---|
| public void cancel() Implements org. Doc from org. Request the Data may still be sent to meet previously signalled demand after calling cancel.
| |
| clear | back to summary |
|---|---|
| public void clear() Implements io. Doc from io. Removes all enqueued items from this queue.
| |
| fail | back to summary |
|---|---|
| protected final void fail(Throwable t) Rethrows the throwable if it is a fatal exception or calls
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements io. Doc from io. Returns true if the queue is empty.
Note however that due to potential fused functions in
| |
| offer | back to summary |
|---|---|
| public final boolean offer(R e) Implements io. Doc from io. Atomically enqueue a single.
| |
| offer | back to summary |
|---|---|
| public final boolean offer(R v1, R v2) Implements io. Doc from io. Atomically enqueue two values.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements org. Doc from org. Successful terminal state.
No further events will be sent even if
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements org. Doc from org. Failed terminal state.
No further events will be sent even if | |
| onSubscribe | back to summary |
|---|---|
| public final void onSubscribe(Subscription s) Implements io. Doc from io. Implementors of this method should make sure everything that needs
to be visible in
No data will start flowing until
It is the responsibility of this
The
| |
| request | back to summary |
|---|---|
| public void request(long n) Implements org. Doc from org. No events will be sent by a
It can be called however often and whenever needed—but if the outstanding cumulative demand ever becomes Long.MAX_VALUE or more,
it may be treated by the
Whatever has been requested can be sent by the
A | |
| transitiveBoundaryFusion | back to summary |
|---|---|
| protected final int transitiveBoundaryFusion(int mode) Calls the upstream's QueueSubscription.requestFusion with the mode and
saves the established mode in
If the upstream doesn't support fusion (
| |