Stream and emits its values as an Observable sequence.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | |
| protected void | |
| public static < the element type of the flow T> void | subscribeStream(Observer<? super T>
the observer to drive observer, Stream<T> the sequence to consume stream)Subscribes to the Stream. |
| stream | back to summary |
|---|---|
| pack-priv final Stream<T> stream | |
| ObservableFromStream | back to summary |
|---|---|
| public ObservableFromStream(Stream<T> stream) | |
| closeSafely | back to summary |
|---|---|
| pack-priv static void closeSafely(AutoCloseable c) | |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(Observer<? super T> observer)
| |
| subscribeStream | back to summary |
|---|---|
| public static <T> void subscribeStream(Observer<? super T> observer, Stream<T> stream) Subscribes to the Stream. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv AutoCloseable | |
| pack-priv volatile boolean | |
| pack-priv final Observer | |
| pack-priv Iterator | |
| pack-priv boolean | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements io. |
| public void | dispose()
Implements io. |
| public boolean | isDisposed()
Implements io. |
| public boolean | isEmpty()
Implements io. |
| public boolean | offer(T
the value to enqueue, not null value)Implements io. |
| public boolean | offer(T
the first value to enqueue, not null v1, T the second value to enqueue, not null v2)Implements io. |
| public T | poll()
Implements io. |
| public int | requestFusion(int mode)
Implements io. |
| public void |
| closeable | back to summary |
|---|---|
| pack-priv AutoCloseable closeable | |
| disposed | back to summary |
|---|---|
| pack-priv volatile boolean disposed | |
| downstream | back to summary |
|---|---|
| pack-priv final Observer<? super T> downstream | |
| iterator | back to summary |
|---|---|
| pack-priv Iterator<T> iterator | |
| once | back to summary |
|---|---|
| pack-priv boolean once | |
| outputFused | back to summary |
|---|---|
| pack-priv boolean outputFused | |
| StreamDisposable | back to summary |
|---|---|
| pack-priv StreamDisposable(Observer<? super T> downstream, Iterator<T> iterator, AutoCloseable closeable) | |
| 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.
| |
| 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 boolean offer(T value) Implements io. Doc from io. Atomically enqueue a single value.
| |
| offer | back to summary |
|---|---|
| public boolean offer(T v1, T v2) Implements io. Doc from io. Atomically enqueue two values.
| |
| poll | back to summary |
|---|---|
| public T poll() Implements io. Doc from io. Tries to dequeue a value (non-null) or returns null if the queue is empty.
If the producer uses | |
| 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
| |
| run | back to summary |
|---|---|
| public void run() | |