| Modifier and Type | Field and Description |
|---|---|
| protected boolean | done
Flag indicating no further onXXX event should be accepted. |
| protected final Observer | downstream
The downstream subscriber. |
| protected QueueDisposable | qd
The upstream's QueueDisposable if not null. |
| protected int | sourceMode
Holds the established fusion mode of the upstream. |
| protected Disposable | upstream
The upstream subscription. |
| Access | Constructor and Description |
|---|---|
| public | BasicFuseableObserver(Observer<? super R>
the subscriber, not null (not verified) downstream)Construct a BasicFuseableObserver 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 | clear()
Implements io. |
| public void | dispose()
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 | isDisposed()
Implements io. |
| 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 | onComplete()
Implements io. Observer that the Observable has finished sending push-based notifications.
|
| public void | |
| public final void | |
| protected final int | Returns: the established fusion modethe fusion mode requested mode)Calls the upstream's QueueDisposable.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 Observer<? super R> downstream The downstream subscriber. | |
| qd | back to summary |
|---|---|
| protected QueueDisposable<T> qd The upstream's QueueDisposable if not null. | |
| sourceMode | back to summary |
|---|---|
| protected int sourceMode Holds the established fusion mode of the upstream. | |
| upstream | back to summary |
|---|---|
| protected Disposable upstream The upstream subscription. | |
| BasicFuseableObserver | back to summary |
|---|---|
| public BasicFuseableObserver(Observer<? super R> downstream) Construct a BasicFuseableObserver 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
| |
| clear | back to summary |
|---|---|
| public void clear() Implements io. Doc from io. Removes all enqueued items from this queue.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements io. Doc from io. Dispose the resource, the operation should be idempotent.
| |
| fail | back to summary |
|---|---|
| protected final void fail(Throwable t) Rethrows the throwable if it is a fatal exception or calls
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Implements io. Doc from io. Returns true if this resource has been disposed.
| |
| 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 value.
| |
| 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 io. Doc from io. Notifies the
The
| |
| onError | back to summary |
|---|---|
public void onError(Throwable t)
| |
| onSubscribe | back to summary |
|---|---|
public final void onSubscribe(Disposable d)
| |
| transitiveBoundaryFusion | back to summary |
|---|---|
| protected final int transitiveBoundaryFusion(int mode) Calls the upstream's QueueDisposable.requestFusion with the mode and
saves the established mode in
If the upstream doesn't support fusion (
| |