Flux that emits items from upstream and recursively expand them into
inner sequences that are also replayed. The type of recursion is driven by the
breadthFirst parameter.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final boolean | |
| pack-priv final int | |
| pack-priv final Function |
| Access | Constructor and Description |
|---|---|
| pack-priv | FluxExpand(Flux<T> source, Function<? super T, ? extends Publisher<? extends T>> expander, boolean breadthFirst, int capacityHint)
|
| Modifier and Type | Method and Description |
|---|---|
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides reactor. Implements reactor. |
| public CoreSubscriber | subscribeOrReturn(CoreSubscriber<? super T> s)
Implements abstract reactor. Implements reactor. CoreSubscriber, or force
subscription encapsulation by returning null.
|
| breadthFirst | back to summary |
|---|---|
| pack-priv final boolean breadthFirst | |
| capacityHint | back to summary |
|---|---|
| pack-priv final int capacityHint | |
| expander | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends Publisher<? extends T>> expander | |
| FluxExpand | back to summary |
|---|---|
| pack-priv FluxExpand(Flux<T> source, Function<? super T, ? extends Publisher<? extends T>> expander, boolean breadthFirst, int capacityHint) | |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Overrides reactor. 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 | |
| subscribeOrReturn | back to summary |
|---|---|
| public CoreSubscriber Implements abstract reactor. Implements reactor. Doc from reactor. Allow delegation of the subscription by returning a
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean | |
| pack-priv final Function | |
| pack-priv long | |
| pack-priv final Queue | |
| pack-priv volatile int | |
| pack-priv static final AtomicIntegerFieldUpdater |
| Access | Constructor and Description |
|---|---|
| pack-priv | ExpandBreathSubscriber(CoreSubscriber<? super T> actual, Function<? super T, ? extends Publisher<? extends T>> expander, int capacityHint)
|
| active | back to summary |
|---|---|
| pack-priv volatile boolean active | |
| expander | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends Publisher<? extends T>> expander | |
| produced | back to summary |
|---|---|
| pack-priv long produced | |
| queue | back to summary |
|---|---|
| pack-priv final Queue<Publisher<? extends T>> queue | |
| wip | back to summary |
|---|---|
| pack-priv volatile int wip Hides reactor. | |
| WIP | back to summary |
|---|---|
| pack-priv static final AtomicIntegerFieldUpdater<FluxExpand. Hides reactor. | |
| ExpandBreathSubscriber | back to summary |
|---|---|
| pack-priv ExpandBreathSubscriber(CoreSubscriber<? super T> actual, Function<? super T, ? extends Publisher<? extends T>> expander, int capacityHint) | |
| cancel | back to summary |
|---|---|
| public void cancel() Overrides reactor. Implements org. Doc from org. Request the Data may still be sent to meet previously signalled demand after calling cancel.
| |
| drainQueue | back to summary |
|---|---|
| pack-priv void drainQueue() | |
| onComplete | back to summary |
|---|---|
| public void onComplete() Overrides reactor. 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) Overrides reactor. 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) Overrides reactor. 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
| |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Overrides reactor. Overrides default reactor. 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 | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean | |
| pack-priv FluxExpand. | |
| pack-priv volatile Subscription | |
| pack-priv static final AtomicReferenceFieldUpdater | |
| pack-priv volatile T |
| 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..
|
| pack-priv void | |
| 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).
|
| pack-priv void | |
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Implements reactor. |
| done | back to summary |
|---|---|
| pack-priv volatile boolean done | |
| parent | back to summary |
|---|---|
| pack-priv FluxExpand. | |
| s | back to summary |
|---|---|
| pack-priv volatile Subscription s | |
| S | back to summary |
|---|---|
| pack-priv static final AtomicReferenceFieldUpdater<FluxExpand. | |
| value | back to summary |
|---|---|
| pack-priv volatile T value | |
| ExpandDepthSubscriber | back to summary |
|---|---|
| pack-priv ExpandDepthSubscriber(FluxExpand. | |
| currentContext | back to summary |
|---|---|
| public Context currentContext() Overrides default reactor. Doc from reactor. Request a
| |
| dispose | back to summary |
|---|---|
| pack-priv void dispose() | |
| 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
| |
| requestOne | back to summary |
|---|---|
| pack-priv void requestOne() | |
| 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 | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile int | |
| pack-priv static final AtomicIntegerFieldUpdater | |
| pack-priv final CoreSubscriber | |
| pack-priv volatile boolean | |
| pack-priv long | |
| pack-priv volatile Object | |
| pack-priv static final AtomicReferenceFieldUpdater | |
| pack-priv volatile Throwable | |
| pack-priv static final AtomicReferenceFieldUpdater | |
| pack-priv final Function | |
| pack-priv volatile long | |
| pack-priv static final AtomicLongFieldUpdater | |
| pack-priv CorePublisher | |
| pack-priv Deque | |
| pack-priv volatile int | |
| pack-priv static final AtomicIntegerFieldUpdater |
| Access | Constructor and Description |
|---|---|
| pack-priv | ExpandDepthSubscription(CoreSubscriber<? super T> actual, Function<? super T, ? extends Publisher<? extends T>> expander, int capacityHint)
|
| Modifier and Type | Method and Description |
|---|---|
| public CoreSubscriber | |
| public void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv FluxExpand. | |
| pack-priv boolean | |
| 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 Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides default reactor. |
| pack-priv boolean |
| active | back to summary |
|---|---|
| pack-priv volatile int active | |
| ACTIVE | back to summary |
|---|---|
| pack-priv static final AtomicIntegerFieldUpdater<FluxExpand. | |
| actual | back to summary |
|---|---|
| pack-priv final CoreSubscriber<? super T> actual | |
| cancelled | back to summary |
|---|---|
| pack-priv volatile boolean cancelled | |
| consumed | back to summary |
|---|---|
| pack-priv long consumed | |
| current | back to summary |
|---|---|
| pack-priv volatile Object current | |
| CURRENT | back to summary |
|---|---|
| pack-priv static final AtomicReferenceFieldUpdater<FluxExpand. | |
| error | back to summary |
|---|---|
| pack-priv volatile Throwable error | |
| ERROR | back to summary |
|---|---|
| pack-priv static final AtomicReferenceFieldUpdater<FluxExpand. | |
| expander | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends Publisher<? extends T>> expander | |
| requested | back to summary |
|---|---|
| pack-priv volatile long requested | |
| REQUESTED | back to summary |
|---|---|
| pack-priv static final AtomicLongFieldUpdater<FluxExpand. | |
| source | back to summary |
|---|---|
| pack-priv CorePublisher<? extends T> source | |
| subscriptionStack | back to summary |
|---|---|
| pack-priv Deque<FluxExpand. | |
| wip | back to summary |
|---|---|
| pack-priv volatile int wip | |
| WIP | back to summary |
|---|---|
| pack-priv static final AtomicIntegerFieldUpdater<FluxExpand. | |
| ExpandDepthSubscription | back to summary |
|---|---|
| pack-priv ExpandDepthSubscription(CoreSubscriber<? super T> actual, Function<? super T, ? extends Publisher<? extends T>> expander, int capacityHint) | |
| actual | back to summary |
|---|---|
| public CoreSubscriber Implements reactor.
| |
| 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.
| |
| drainQueue | back to summary |
|---|---|
| pack-priv void drainQueue() | |
| innerComplete | back to summary |
|---|---|
| pack-priv void innerComplete(FluxExpand. | |
| innerError | back to summary |
|---|---|
| pack-priv void innerError(FluxExpand. | |
| innerNext | back to summary |
|---|---|
| pack-priv void innerNext() | |
| pop | back to summary |
|---|---|
pack-priv FluxExpand.
| |
| push | back to summary |
|---|---|
| pack-priv boolean push(FluxExpand. | |
| 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 | |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Overrides default 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 | |
| setCurrent | back to summary |
|---|---|
| pack-priv boolean setCurrent(FluxExpand. | |