SingleSource, subscribes to them one after the other terminates
and relays their success values, optionally delaying any errors till the main and inner sources
terminate.
History: 2.1.11 - experimental
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ErrorMode | |
| pack-priv final Function | |
| pack-priv final int | |
| pack-priv final ObservableSource |
| Access | Constructor and Description |
|---|---|
| public | ObservableConcatMapSingle(ObservableSource<T> source, Function<? super T, ? extends SingleSource<? extends R>> mapper, ErrorMode errorMode, int prefetch)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void |
| errorMode | back to summary |
|---|---|
| pack-priv final ErrorMode errorMode | |
| mapper | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends SingleSource<? extends R>> mapper | |
| prefetch | back to summary |
|---|---|
| pack-priv final int prefetch | |
| source | back to summary |
|---|---|
| pack-priv final ObservableSource<T> source | |
| ObservableConcatMapSingle | back to summary |
|---|---|
| public ObservableConcatMapSingle(ObservableSource<T> source, Function<? super T, ? extends SingleSource<? extends R>> mapper, ErrorMode errorMode, int prefetch) | |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(Observer<? super R> observer)
| |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Observer | |
| pack-priv final ObservableConcatMapSingle. | |
| pack-priv R | |
| pack-priv final Function | |
| private static final long | |
| pack-priv volatile int | |
| pack-priv static final int | STATE_ACTIVE
An inner SingleSource is running but there are no results yet. |
| pack-priv static final int | STATE_INACTIVE
No inner SingleSource is running. |
| pack-priv static final int | STATE_RESULT_VALUE
The inner SingleSource succeeded with a value in |
| Access | Constructor and Description |
|---|---|
| pack-priv | ConcatMapSingleMainObserver(Observer<? super R> downstream, Function<? super T, ? extends SingleSource<? extends R>> mapper, int prefetch, ErrorMode errorMode)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | clearValue()
Overrides io. |
| pack-priv void | disposeInner()
Implements abstract io. inner.dispose().
|
| pack-priv void | drain()
Implements abstract io. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | onSubscribeDownstream()
Implements abstract io. downstream.onSubscribe(this).
|
| downstream | back to summary |
|---|---|
| pack-priv final Observer<? super R> downstream | |
| inner | back to summary |
|---|---|
| pack-priv final ObservableConcatMapSingle. | |
| item | back to summary |
|---|---|
| pack-priv R item | |
| mapper | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends SingleSource<? extends R>> mapper | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| state | back to summary |
|---|---|
| pack-priv volatile int state | |
| STATE_ACTIVE | back to summary |
|---|---|
| pack-priv static final int STATE_ACTIVE An inner SingleSource is running but there are no results yet. | |
| STATE_INACTIVE | back to summary |
|---|---|
| pack-priv static final int STATE_INACTIVE No inner SingleSource is running. | |
| STATE_RESULT_VALUE | back to summary |
|---|---|
| pack-priv static final int STATE_RESULT_VALUE The inner SingleSource succeeded with a value in | |
| ConcatMapSingleMainObserver | back to summary |
|---|---|
| pack-priv ConcatMapSingleMainObserver(Observer<? super R> downstream, Function<? super T, ? extends SingleSource<? extends R>> mapper, int prefetch, ErrorMode errorMode) | |
| clearValue | back to summary |
|---|---|
| pack-priv void clearValue() Overrides io. Doc from io. Override this to clear values when the downstream disposes.
| |
| disposeInner | back to summary |
|---|---|
| pack-priv void disposeInner() Implements abstract io. Doc from io. Typically, this should be
| |
| drain | back to summary |
|---|---|
| pack-priv void drain() Implements abstract io. Doc from io. Implement the serialized inner subscribing and value emission here.
| |
| innerError | back to summary |
|---|---|
| pack-priv void innerError(Throwable ex) | |
| innerSuccess | back to summary |
|---|---|
| pack-priv void innerSuccess(R item) | |
| onSubscribeDownstream | back to summary |
|---|---|
| pack-priv void onSubscribeDownstream() Implements abstract io. Doc from io. Typically, this should be
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ObservableConcatMapSingle. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | |
| public void | |
| public void | onSuccess(R
the item emitted by the t)SingleImplements io. SingleObserver with a single item and that the Single has finished sending
push-based notifications.
|
| parent | back to summary |
|---|---|
| pack-priv final ObservableConcatMapSingle. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| ConcatMapSingleObserver | back to summary |
|---|---|
| pack-priv ConcatMapSingleObserver(ObservableConcatMapSingle. | |
| dispose | back to summary |
|---|---|
| pack-priv void dispose() | |
| onError | back to summary |
|---|---|
public void onError(Throwable e)
| |
| onSubscribe | back to summary |
|---|---|
public void onSubscribe(Disposable d)
| |
| onSuccess | back to summary |
|---|---|
| public void onSuccess(R t) Implements io. Doc from io. Notifies the
The
| |