It also implements methods to stream the contents via Stream that also supports cancellation.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final Supplier | |
| pack-priv final Supplier | |
| pack-priv final CorePublisher |
| Access | Constructor and Description |
|---|---|
| pack-priv | BlockingIterable(CorePublisher<? extends T> source, int batchSize, Supplier<Queue<T>> queueSupplier, Supplier<Context> contextSupplier)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv BlockingIterable. | |
| public Iterator | |
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Implements reactor. |
| public Spliterator | spliterator()
Overrides default java. Spliterator over the elements described by this
Iterable.
|
| public Stream |
| batchSize | back to summary |
|---|---|
| pack-priv final int batchSize | |
| contextSupplier | back to summary |
|---|---|
| pack-priv final Supplier<Context> contextSupplier | |
| queueSupplier | back to summary |
|---|---|
| pack-priv final Supplier<Queue<T>> queueSupplier | |
| source | back to summary |
|---|---|
| pack-priv final CorePublisher<? extends T> source | |
| BlockingIterable | back to summary |
|---|---|
| pack-priv BlockingIterable(CorePublisher<? extends T> source, int batchSize, Supplier<Queue<T>> queueSupplier, Supplier<Context> contextSupplier) | |
| createIterator | back to summary |
|---|---|
| pack-priv BlockingIterable. | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Implements reactor. Doc from reactor. This method is used internally by components to define their key-value mappings
in a single place. Although it is ignoring the generic type of the
For public consumption of attributes, prefer using | |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides default java. Doc from java. Creates a
| |
| stream | back to summary |
|---|---|
public Stream
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final Condition | |
| pack-priv final Context | |
| pack-priv volatile boolean | |
| pack-priv Throwable | |
| pack-priv final int | |
| pack-priv final Lock | |
| pack-priv long | |
| pack-priv final Queue | |
| pack-priv volatile Subscription | |
| pack-priv static final AtomicReferenceFieldUpdater |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Context | currentContext()
Overrides default reactor. Context from dependent components which can include downstream
operators during subscribing or a terminal org..
|
| public boolean | |
| public T | |
| 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 reactor. onNext(Object) before
calling Subscription#request(long).
|
| public void | |
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Implements reactor. |
| pack-priv void |
| batchSize | back to summary |
|---|---|
| pack-priv final int batchSize | |
| condition | back to summary |
|---|---|
| pack-priv final Condition condition | |
| context | back to summary |
|---|---|
| pack-priv final Context context | |
| done | back to summary |
|---|---|
| pack-priv volatile boolean done | |
| error | back to summary |
|---|---|
| pack-priv Throwable error | |
| limit | back to summary |
|---|---|
| pack-priv final int limit | |
| lock | back to summary |
|---|---|
| pack-priv final Lock lock | |
| produced | back to summary |
|---|---|
| pack-priv long produced | |
| queue | back to summary |
|---|---|
| pack-priv final Queue<T> queue | |
| s | back to summary |
|---|---|
| pack-priv volatile Subscription s | |
| S | back to summary |
|---|---|
pack-priv static final AtomicReferenceFieldUpdater<BlockingIterable.
| |
| SubscriberIterator | back to summary |
|---|---|
| pack-priv SubscriberIterator(Queue<T> queue, Context context, int batchSize) | |
| currentContext | back to summary |
|---|---|
| public Context currentContext() Overrides default reactor. Doc from reactor. Request a
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public T next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| 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 reactor. Doc from reactor. Implementors should initialize any state used by
Note that an invalid request
No data will start flowing until
It is the responsibility of this
The
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Implements reactor. Doc from reactor. This method is used internally by components to define their key-value mappings
in a single place. Although it is ignoring the generic type of the
For public consumption of attributes, prefer using | |
| signalConsumer | back to summary |
|---|---|
| pack-priv void signalConsumer() | |