Publisher for each individualSubscriber,
while streaming the values from a Publisher derived from the same resource.
Whenever the resulting sequence terminates, the relevant Function generates
a "cleanup" Publisher that is invoked but doesn't change the content of the
main sequence. Instead it just defers the termination (unless it errors, in which case
the error suppresses the original termination signal).
Note that if the resource supplying Publisher emits more than one resource, the
subsequent resources are dropped (Operators#onNextDropped(Object, Context)). If
the publisher errors AFTER having emitted one resource, the error is also silently dropped
(Operators#onErrorDropped(Throwable, Context)).
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | FluxUsingWhen.CancelInner
Used in the cancel path to still give the generated Publisher access to the Context |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| private static interface | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Function | |
| pack-priv final Function | |
| pack-priv final BiFunction | |
| pack-priv final Function | |
| pack-priv final Publisher |
| Access | Constructor and Description |
|---|---|
| pack-priv | FluxUsingWhen(Publisher<S> resourceSupplier, Function<? super S, ? extends Publisher<? extends T>> resourceClosure, Function<? super S, ? extends Publisher<?>> asyncComplete, BiFunction<? super S, ? super Throwable, ? extends Publisher<?>> asyncError, Function<? super S, ? extends Publisher<?>> asyncCancel)
|
| Modifier and Type | Method and Description |
|---|---|
| private static <RESOURCE, T> Publisher | deriveFluxFromResource(RESOURCE resource, Function<? super RESOURCE, ? extends Publisher<? extends T>> resourceClosure)
|
| private static <RESOURCE, T> FluxUsingWhen. | prepareSubscriberForResource(RESOURCE resource, CoreSubscriber<? super T> actual, Function<? super RESOURCE, ? extends Publisher<?>> asyncComplete, BiFunction<? super RESOURCE, ? super Throwable, ? extends Publisher<?>> asyncError, Function<? super RESOURCE, ? extends Publisher<?>> asyncCancel, Operators.
|
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides default reactor. |
| public void | subscribe(CoreSubscriber<? super T>
the actual)Subscriber interested into the published sequenceImplements abstract reactor. Implements reactor. Publisher#subscribe(Subscriber) that will bypass
Hooks#onLastOperator(Function) pointcut.
|