MaybeSource, 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 Flowable |
| Access | Constructor and Description |
|---|---|
| public | FlowableConcatMapMaybe(Flowable<T> source, Function<? super T, ? extends MaybeSource<? 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 MaybeSource<? extends R>> mapper | |
| prefetch | back to summary |
|---|---|
| pack-priv final int prefetch | |
| source | back to summary |
|---|---|
| pack-priv final Flowable<T> source | |
| FlowableConcatMapMaybe | back to summary |
|---|---|
| public FlowableConcatMapMaybe(Flowable<T> source, Function<? super T, ? extends MaybeSource<? extends R>> mapper, ErrorMode errorMode, int prefetch) | |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(Subscriber<? super R> s)
| |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv final Subscriber | |
| pack-priv long | |
| pack-priv final FlowableConcatMapMaybe. | |
| pack-priv R | |
| pack-priv final Function | |
| pack-priv final AtomicLong | |
| private static final long | |
| pack-priv volatile int | |
| pack-priv static final int | STATE_ACTIVE
An inner MaybeSource is running but there are no results yet. |
| pack-priv static final int | STATE_INACTIVE
No inner MaybeSource is running. |
| pack-priv static final int | STATE_RESULT_VALUE
The inner MaybeSource succeeded with a value in |
| Access | Constructor and Description |
|---|---|
| pack-priv | ConcatMapMaybeSubscriber(Subscriber<? super R> downstream, Function<? super T, ? extends MaybeSource<? extends R>> mapper, int prefetch, ErrorMode errorMode)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| 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 | |
| pack-priv void | onSubscribeDownstream()
Implements abstract io. downstream.onSubscribe(this);.
|
| 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.
|
| consumed | back to summary |
|---|---|
| pack-priv int consumed | |
| downstream | back to summary |
|---|---|
| pack-priv final Subscriber<? super R> downstream | |
| emitted | back to summary |
|---|---|
| pack-priv long emitted | |
| inner | back to summary |
|---|---|
| pack-priv final FlowableConcatMapMaybe. | |
| item | back to summary |
|---|---|
| pack-priv R item | |
| mapper | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends MaybeSource<? extends R>> mapper | |
| requested | back to summary |
|---|---|
| pack-priv final AtomicLong requested | |
| 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 MaybeSource is running but there are no results yet. | |
| STATE_INACTIVE | back to summary |
|---|---|
| pack-priv static final int STATE_INACTIVE No inner MaybeSource is running. | |
| STATE_RESULT_VALUE | back to summary |
|---|---|
| pack-priv static final int STATE_RESULT_VALUE The inner MaybeSource succeeded with a value in | |
| ConcatMapMaybeSubscriber | back to summary |
|---|---|
| pack-priv ConcatMapMaybeSubscriber(Subscriber<? super R> downstream, Function<? super T, ? extends MaybeSource<? extends R>> mapper, int prefetch, ErrorMode errorMode) | |
| 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.
| |
| 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.
| |
| innerComplete | back to summary |
|---|---|
| pack-priv void innerComplete() | |
| 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
| |
| 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 | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final FlowableConcatMapMaybe. | |
| 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 | |
| public void | onSuccess(R
the item emitted by the t)MaybeImplements io. MaybeObserver with one item and that the Maybe has finished sending
push-based notifications.
|
| parent | back to summary |
|---|---|
| pack-priv final FlowableConcatMapMaybe. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| ConcatMapMaybeObserver | back to summary |
|---|---|
| pack-priv ConcatMapMaybeObserver(FlowableConcatMapMaybe. | |
| 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)
| |
| onSuccess | back to summary |
|---|---|
| public void onSuccess(R t) Implements io. Doc from io. Notifies the
The
| |