CompletableSources, subscribes to the newer one while
disposing the subscription to the previous CompletableSource, thus keeping at most one
active CompletableSource running.
History: 2.1.11 - experimental
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final boolean | |
| pack-priv final Function | |
| pack-priv final Flowable |
| Access | Constructor and Description |
|---|---|
| public | FlowableSwitchMapCompletable(Flowable<T> source, Function<? super T, ? extends CompletableSource> mapper, boolean delayErrors)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void |
| delayErrors | back to summary |
|---|---|
| pack-priv final boolean delayErrors | |
| mapper | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends CompletableSource> mapper | |
| source | back to summary |
|---|---|
| pack-priv final Flowable<T> source | |
| FlowableSwitchMapCompletable | back to summary |
|---|---|
| public FlowableSwitchMapCompletable(Flowable<T> source, Function<? super T, ? extends CompletableSource> mapper, boolean delayErrors) | |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(CompletableObserver observer)
| |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final boolean | |
| pack-priv volatile boolean | |
| pack-priv final CompletableObserver | |
| pack-priv final AtomicThrowable | |
| pack-priv final AtomicReference | |
| pack-priv static final FlowableSwitchMapCompletable. | |
| pack-priv final Function | |
| pack-priv Subscription |
| Access | Constructor and Description |
|---|---|
| pack-priv | SwitchMapCompletableObserver(CompletableObserver downstream, Function<? super T, ? extends CompletableSource> mapper, boolean delayErrors)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements io. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public boolean | isDisposed()
Implements io. |
| public void | |
| public void | onError(Throwable
the throwable signaled t)Implements org. |
| public void | onNext(T
the element signaled t)Implements org. Publisher in response to requests to Subscription#request(long).
|
| public void | onSubscribe(Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements org. Publisher#subscribe(Subscriber).
|
| delayErrors | back to summary |
|---|---|
| pack-priv final boolean delayErrors | |
| done | back to summary |
|---|---|
| pack-priv volatile boolean done | |
| downstream | back to summary |
|---|---|
| pack-priv final CompletableObserver downstream | |
| errors | back to summary |
|---|---|
| pack-priv final AtomicThrowable errors | |
| inner | back to summary |
|---|---|
| pack-priv final AtomicReference<FlowableSwitchMapCompletable. | |
| INNER_DISPOSED | back to summary |
|---|---|
| pack-priv static final FlowableSwitchMapCompletable. | |
| mapper | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends CompletableSource> mapper | |
| upstream | back to summary |
|---|---|
| pack-priv Subscription upstream | |
| SwitchMapCompletableObserver | back to summary |
|---|---|
| pack-priv SwitchMapCompletableObserver(CompletableObserver downstream, Function<? super T, ? extends CompletableSource> mapper, boolean delayErrors) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements io. Doc from io. Dispose the resource, the operation should be idempotent.
| |
| disposeInner | back to summary |
|---|---|
| pack-priv void disposeInner() | |
| innerComplete | back to summary |
|---|---|
| pack-priv void innerComplete(FlowableSwitchMapCompletable. | |
| innerError | back to summary |
|---|---|
| pack-priv void innerError(FlowableSwitchMapCompletable. | |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Implements io. Doc from io. Returns true if this resource has been disposed.
| |
| 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 | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements org. Doc from org. Data notification sent by the
| |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Subscription s) Implements org. Doc from org. Invoked after calling
No data will start flowing until
It is the responsibility of this
The
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final FlowableSwitchMapCompletable. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | onComplete()
Implements io. |
| public void | |
| public void |
| parent | back to summary |
|---|---|
| pack-priv final FlowableSwitchMapCompletable. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| SwitchMapInnerObserver | back to summary |
|---|---|
| pack-priv SwitchMapInnerObserver(FlowableSwitchMapCompletable. | |
| dispose | back to summary |
|---|---|
| pack-priv void dispose() | |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements io. Doc from io. Called once the deferred computation completes normally.
| |
| onError | back to summary |
|---|---|
public void onError(Throwable e)
| |
| onSubscribe | back to summary |
|---|---|
public void onSubscribe(Disposable d)
| |