| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static long | |
| pack-priv static long | |
| pack-priv static int | |
| pack-priv static int | |
| pack-priv static long | |
| pack-priv static long | |
| pack-priv static long | |
| pack-priv final Function | |
| pack-priv static int | |
| pack-priv static long |
| Access | Constructor and Description |
|---|---|
| pack-priv | FluxSwitchMapNoPrefetch(Flux<? extends T> source, Function<? super T, ? extends Publisher<? extends R>> mapper)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static long | Returns: next statereceived from previousRequested)Operators#addCap method.Atomically add increment hasRequest value to indicate that we added capacity to
Note, If the given |
| public int | getPrefetch()
Overrides reactor. Flux
|
| pack-priv static boolean | |
| pack-priv static boolean | |
| pack-priv static int | |
| pack-priv static long | Returns: previous stateAtomically increment the index of the active inner subscriber. |
| pack-priv static int | |
| pack-priv static boolean | |
| pack-priv static boolean | |
| pack-priv static int | |
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides reactor. Implements reactor. |
| pack-priv static long | Returns: previous stateAtomically set the inner completed flag. |
| pack-priv static long | Returns: previous stateAtomically set a bit on the current state indicating that current inner has received a subscription. |
| pack-priv static long | Returns: previous stateAtomically set main completed flag. |
| pack-priv static long | Returns: previous stateAtomically set state as terminated |
| pack-priv static long | Returns: previous stateAtomically set WIP flag to indicate that we do some work from Inner#OnNext or Inner#OnComplete. |
| pack-priv static long | Returns: encoded stateGeneric method to encode state from the given params into a long value |
| public CoreSubscriber | subscribeOrReturn(CoreSubscriber<? super R> actual)
Implements abstract reactor. Implements reactor. CoreSubscriber, or force
subscription encapsulation by returning null.
|
| pack-priv static long | Returns: previous stateAtomically unset WIP flag to indicate that we have done the work from
Inner#OnNext
If the current state is |
| COMPLETED_MASK | back to summary |
|---|---|
| pack-priv static long COMPLETED_MASK | |
| HAS_REQUEST_MASK | back to summary |
|---|---|
| pack-priv static long HAS_REQUEST_MASK | |
| HAS_REQUEST_OFFSET | back to summary |
|---|---|
| pack-priv static int HAS_REQUEST_OFFSET | |
| INDEX_OFFSET | back to summary |
|---|---|
| pack-priv static int INDEX_OFFSET | |
| INNER_COMPLETED_MASK | back to summary |
|---|---|
| pack-priv static long INNER_COMPLETED_MASK | |
| INNER_SUBSCRIBED_MASK | back to summary |
|---|---|
| pack-priv static long INNER_SUBSCRIBED_MASK | |
| INNER_WIP_MASK | back to summary |
|---|---|
| pack-priv static long INNER_WIP_MASK | |
| mapper | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends Publisher<? extends R>> mapper | |
| MAX_HAS_REQUEST | back to summary |
|---|---|
| pack-priv static int MAX_HAS_REQUEST | |
| TERMINATED | back to summary |
|---|---|
| pack-priv static long TERMINATED | |
| FluxSwitchMapNoPrefetch | back to summary |
|---|---|
| pack-priv FluxSwitchMapNoPrefetch(Flux<? extends T> source, Function<? super T, ? extends Publisher<? extends R>> mapper) | |
| addRequest | back to summary |
|---|---|
| pack-priv static long addRequest(FluxSwitchMapNoPrefetch. Atomically add increment hasRequest value to indicate that we added capacity to
Note, If the given
| |
| getPrefetch | back to summary |
|---|---|
| public int getPrefetch() Overrides reactor. Doc from reactor. The prefetch configuration of the | |
| hasInnerCompleted | back to summary |
|---|---|
| pack-priv static boolean hasInnerCompleted(long state) | |
| hasMainCompleted | back to summary |
|---|---|
| pack-priv static boolean hasMainCompleted(long state) | |
| hasRequest | back to summary |
|---|---|
| pack-priv static int hasRequest(long state) | |
| incrementIndex | back to summary |
|---|---|
| pack-priv static long incrementIndex(FluxSwitchMapNoPrefetch. Atomically increment the index of the active inner subscriber.
The index will not be changed if the current state is
| |
| index | back to summary |
|---|---|
| pack-priv static int index(long state) | |
| isInnerSubscribed | back to summary |
|---|---|
| pack-priv static boolean isInnerSubscribed(long state) | |
| isWip | back to summary |
|---|---|
| pack-priv static boolean isWip(long state) | |
| nextIndex | back to summary |
|---|---|
| pack-priv static int nextIndex(long state) | |
| 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 | |
| setInnerCompleted | back to summary |
|---|---|
| pack-priv static long setInnerCompleted(FluxSwitchMapNoPrefetch. Atomically set the inner completed flag.
The flag will not be set if the current state is
| |
| setInnerSubscribed | back to summary |
|---|---|
| pack-priv static long setInnerSubscribed(FluxSwitchMapNoPrefetch. Atomically set a bit on the current state indicating that current inner has received a subscription. If the index has changed during the subscription or stream was cancelled, the bit will not bit set
| |
| setMainCompleted | back to summary |
|---|---|
| pack-priv static long setMainCompleted(FluxSwitchMapNoPrefetch. Atomically set main completed flag.
The flag will not be set if the current state is
| |
| setTerminated | back to summary |
|---|---|
| pack-priv static long setTerminated(FluxSwitchMapNoPrefetch. Atomically set state as terminated
| |
| setWip | back to summary |
|---|---|
| pack-priv static long setWip(FluxSwitchMapNoPrefetch. Atomically set WIP flag to indicate that we do some work from Inner#OnNext or
Inner#OnComplete.
If the current state is
| |
| state | back to summary |
|---|---|
| pack-priv static long state(int index, boolean wip, int hasRequest, boolean innerSubscribed, boolean mainCompleted, boolean innerCompleted) Generic method to encode state from the given params into a long value
| |
| subscribeOrReturn | back to summary |
|---|---|
| public CoreSubscriber Implements abstract reactor. Implements reactor. Doc from reactor. Allow delegation of the subscription by returning a
| |
| unsetWip | back to summary |
|---|---|
| pack-priv static long unsetWip(FluxSwitchMapNoPrefetch. Atomically unset WIP flag to indicate that we have done the work from
Inner#OnNext
If the current state is
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final CoreSubscriber | |
| pack-priv boolean | |
| pack-priv final int | |
| pack-priv final StateLogger | |
| pack-priv T | |
| pack-priv FluxSwitchMapNoPrefetch. | |
| pack-priv final FluxSwitchMapNoPrefetch. | |
| pack-priv long | |
| pack-priv long | |
| pack-priv Subscription |
| Access | Constructor and Description |
|---|---|
| pack-priv | SwitchMapInner(FluxSwitchMapNoPrefetch.
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public Context | currentContext()
Overrides default reactor. Context from dependent components which can include downstream
operators during subscribing or a terminal org..
|
| pack-priv boolean | |
| public void | |
| public void | onError(Throwable
the throwable signaled t)Implements org. |
| public void | onNext(R
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. |
| public String |
| actual | back to summary |
|---|---|
| pack-priv final CoreSubscriber<? super R> actual | |
| done | back to summary |
|---|---|
| pack-priv boolean done | |
| index | back to summary |
|---|---|
| pack-priv final int index | |
| logger | back to summary |
|---|---|
| pack-priv final StateLogger logger
| |
| nextElement | back to summary |
|---|---|
| pack-priv T nextElement | |
| nextInner | back to summary |
|---|---|
| pack-priv FluxSwitchMapNoPrefetch. | |
| parent | back to summary |
|---|---|
| pack-priv final FluxSwitchMapNoPrefetch. | |
| produced | back to summary |
|---|---|
| pack-priv long produced | |
| requested | back to summary |
|---|---|
| pack-priv long requested | |
| s | back to summary |
|---|---|
| pack-priv Subscription s | |
| SwitchMapInner | back to summary |
|---|---|
| pack-priv SwitchMapInner(FluxSwitchMapNoPrefetch. | |
| cancelFromParent | back to summary |
|---|---|
| pack-priv void cancelFromParent() | |
| currentContext | back to summary |
|---|---|
| public Context currentContext() Overrides default reactor. Doc from reactor. Request a
| |
| isCancelledByParent | back to summary |
|---|---|
| pack-priv boolean isCancelledByParent() | |
| 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(R 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
| |
| request | back to summary |
|---|---|
| pack-priv void request(long n) | |
| 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 | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final CoreSubscriber | |
| pack-priv boolean | |
| pack-priv FluxSwitchMapNoPrefetch. | |
| pack-priv final StateLogger | |
| pack-priv final Function | |
| pack-priv volatile long | |
| pack-priv static final AtomicLongFieldUpdater | |
| pack-priv Subscription | |
| pack-priv volatile long | |
| pack-priv static final AtomicLongFieldUpdater | |
| pack-priv volatile Throwable | |
| pack-priv static final AtomicReferenceFieldUpdater |
| Access | Constructor and Description |
|---|---|
| pack-priv | SwitchMapMain(CoreSubscriber<? super R> actual, Function<? super T, ? extends Publisher<? extends R>> mapper)
|
| pack-priv | SwitchMapMain(CoreSubscriber<? super R> actual, Function<? super T, ? extends Publisher<? extends R>> mapper, StateLogger logger)
|
| Modifier and Type | Method and Description |
|---|---|
| public final CoreSubscriber | |
| public void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| public Stream | inners()
Overrides default reactor. Stream of referenced inners (flatmap, multicast etc)
|
| 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 | 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. Implements reactor. |
| pack-priv void | subscribeInner(T nextElement, FluxSwitchMapNoPrefetch.
|
| actual | back to summary |
|---|---|
| pack-priv final CoreSubscriber<? super R> actual | |
| done | back to summary |
|---|---|
| pack-priv boolean done | |
| inner | back to summary |
|---|---|
| pack-priv FluxSwitchMapNoPrefetch. | |
| logger | back to summary |
|---|---|
| pack-priv final StateLogger logger
| |
| mapper | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends Publisher<? extends R>> mapper | |
| requested | back to summary |
|---|---|
| pack-priv volatile long requested | |
| REQUESTED | back to summary |
|---|---|
pack-priv static final AtomicLongFieldUpdater<FluxSwitchMapNoPrefetch.
| |
| s | back to summary |
|---|---|
| pack-priv Subscription s | |
| state | back to summary |
|---|---|
| pack-priv volatile long state | |
| STATE | back to summary |
|---|---|
pack-priv static final AtomicLongFieldUpdater<FluxSwitchMapNoPrefetch.
| |
| throwable | back to summary |
|---|---|
| pack-priv volatile Throwable throwable | |
| THROWABLE | back to summary |
|---|---|
pack-priv static final AtomicReferenceFieldUpdater<FluxSwitchMapNoPrefetch.
| |
| SwitchMapMain | back to summary |
|---|---|
| pack-priv SwitchMapMain(CoreSubscriber<? super R> actual, Function<? super T, ? extends Publisher<? extends R>> mapper) | |
| SwitchMapMain | back to summary |
|---|---|
| pack-priv SwitchMapMain(CoreSubscriber<? super R> actual, Function<? super T, ? extends Publisher<? extends R>> mapper, StateLogger logger) | |
| actual | back to summary |
|---|---|
| public final 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.
| |
| inners | back to summary |
|---|---|
| public Stream Overrides default reactor. Doc from reactor. Return a | |
| 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
| |
| 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. 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 | |
| subscribeInner | back to summary |
|---|---|
| pack-priv void subscribeInner(T nextElement, FluxSwitchMapNoPrefetch. | |