Stream and emits its values.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Function | |
| pack-priv final Maybe |
| Access | Constructor and Description |
|---|---|
| public | MaybeFlattenStreamAsFlowable(Maybe<T> source, Function<? super T, ? extends Stream<? extends R>> mapper)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void |
| mapper | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends Stream<? extends R>> mapper | |
| source | back to summary |
|---|---|
| pack-priv final Maybe<T> source | |
| MaybeFlattenStreamAsFlowable | back to summary |
|---|---|
| public MaybeFlattenStreamAsFlowable(Maybe<T> source, Function<? super T, ? extends Stream<? extends R>> mapper) | |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(@NonNull Subscriber<? super R> s)
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean | |
| pack-priv AutoCloseable | |
| pack-priv final Subscriber | |
| pack-priv long | |
| pack-priv volatile Iterator | |
| pack-priv final Function | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv final AtomicLong | |
| private static final long | |
| pack-priv Disposable |
| Access | Constructor and Description |
|---|---|
| pack-priv | FlattenStreamMultiObserver(Subscriber<? super R> downstream, Function<? super T, ? extends Stream<? extends R>> mapper)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| public void | clear()
Implements io. |
| pack-priv void | |
| pack-priv void | |
| public boolean | isEmpty()
Implements io. |
| public void | onComplete()
Implements io. |
| public void | |
| public void | |
| public void | onSuccess(T
the item emitted by the t)MaybeImplements io. MaybeObserver with one item and that the Maybe has finished sending
push-based notifications.
|
| public R | poll()
Implements io. |
| 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.
|
| public int | requestFusion(int mode)
Implements io. |
| cancelled | back to summary |
|---|---|
| pack-priv volatile boolean cancelled | |
| close | back to summary |
|---|---|
| pack-priv AutoCloseable close | |
| downstream | back to summary |
|---|---|
| pack-priv final Subscriber<? super R> downstream | |
| emitted | back to summary |
|---|---|
| pack-priv long emitted | |
| iterator | back to summary |
|---|---|
| pack-priv volatile Iterator<? extends R> iterator | |
| mapper | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends Stream<? extends R>> mapper | |
| once | back to summary |
|---|---|
| pack-priv boolean once | |
| outputFused | back to summary |
|---|---|
| pack-priv boolean outputFused | |
| requested | back to summary |
|---|---|
| pack-priv final AtomicLong requested | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| upstream | back to summary |
|---|---|
| pack-priv Disposable upstream | |
| FlattenStreamMultiObserver | back to summary |
|---|---|
| pack-priv FlattenStreamMultiObserver(Subscriber<? super R> downstream, Function<? super T, ? extends Stream<? extends R>> mapper) | |
| 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.
| |
| close | back to summary |
|---|---|
| pack-priv void close(AutoCloseable c) | |
| drain | back to summary |
|---|---|
| pack-priv void drain() | |
| 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
| |
| 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(@NonNull Throwable e)
| |
| onSubscribe | back to summary |
|---|---|
public void onSubscribe(@NonNull Disposable d)
| |
| onSuccess | back to summary |
|---|---|
| public void onSuccess(T t) Implements io. Doc from io. Notifies the
The
| |
| poll | back to summary |
|---|---|
| public R poll() throws Throwable Implements io. Doc from io. Tries to dequeue a value (non-null) or returns null if the queue is empty.
If the producer uses | |
| 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 | |
| requestFusion | back to summary |
|---|---|
| public int requestFusion(int mode) Implements io. Doc from io. Request a fusion mode from the upstream.
This should be called before
Calling this method multiple times or after
| |