Top Inners Fields Constructors Methods
reactor.core.publisher

pack-priv final Class FluxSwitchOnFirst<T, R>

extends InternalFluxOperator<T, R>
Class Inheritance
Imports
java.util.Objects, java.util.concurrent.CancellationException, java.util.concurrent.atomic.AtomicIntegerFieldUpdater, java.util.function.BiFunction, org.reactivestreams.Publisher, .Subscription, reactor.core.CoreSubscriber, .Exceptions, .Fuseable, reactor.util.annotation.Nullable

Author
Oleh Dokuka

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv abstract static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final boolean
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv final BiFunction<Signal<? extends T>, Flux<T>, Publisher<? extends R>>
Inherited from reactor.core.publisher.InternalFluxOperator:
optimizableOperator

Constructor Summary

AccessConstructor and Description
pack-priv
FluxSwitchOnFirst(Flux<? extends T> source, BiFunction<Signal<? extends T>, Flux<T>, Publisher<? extends R>> transformer, boolean cancelSourceOnComplete)

Method Summary

Modifier and TypeMethod and Description
public int
getPrefetch()

Overrides reactor.core.publisher.Flux.getPrefetch.

The prefetch configuration of the Flux
pack-priv static boolean
pack-priv static boolean
hasFirstValueSent(long state)

pack-priv static boolean
hasInboundCancelled(long state)

pack-priv static boolean
pack-priv static boolean
pack-priv static boolean
pack-priv static boolean
pack-priv static boolean
pack-priv static boolean
pack-priv static boolean
pack-priv static boolean
pack-priv static <T, R> long

Returns:

previous observed state
markFirstValueReceived
(FluxSwitchOnFirst.AbstractSwitchOnFirstMain<T, R> instance)

Adds a flag which indicate that the first inbound onNext signal has already been received.

pack-priv static <T, R> long

Returns:

previous observed state
markFirstValueSent
(FluxSwitchOnFirst.AbstractSwitchOnFirstMain<T, R> instance)

Adds a flag which indicate that the first onNext value has been successfully delivered.

pack-priv static <T, R> long

Returns:

previous observed state
markInboundCancelled
(FluxSwitchOnFirst.AbstractSwitchOnFirstMain<T, R> instance)

Adds a flag which indicate that the inbound has already been cancelled.

pack-priv static <T, R> long

Returns:

previous observed state
markInboundCancelledAndOutboundTerminated
(FluxSwitchOnFirst.AbstractSwitchOnFirstMain<T, R> instance)

Adds flags which indicate that the inbound has cancelled upstream and errored the outbound downstream.

pack-priv static <T, R> long

Returns:

previous observed state
markInboundClosedPrematurely
(FluxSwitchOnFirst.AbstractSwitchOnFirstMain<T, R> instance)

Adds flags which indicate that the inbound has prematurely from the very bottom of the pipe.

pack-priv static <T, R> long

Returns:

previous observed state
markInboundRequestedOnce
(FluxSwitchOnFirst.AbstractSwitchOnFirstMain<T, R> instance)

Adds a flag which indicate that the inbound has already been requested once.

pack-priv static <T, R> long

Returns:

previous observed state
markInboundSubscribedOnce
(FluxSwitchOnFirst.AbstractSwitchOnFirstMain<T, R> instance)

Adds a flag which indicate that the inbound has already been subscribed once.

pack-priv static <T, R> long

Returns:

previous observed state
markInboundSubscriberSet
(FluxSwitchOnFirst.AbstractSwitchOnFirstMain<T, R> instance)

Adds a flag which indicate that the inbound subscriber has already been set.

pack-priv static <T, R> long

Returns:

previous observed state
markInboundTerminated
(FluxSwitchOnFirst.AbstractSwitchOnFirstMain<T, R> instance)

Adds a flag which indicate that the inbound has already been terminated with onComplete or onError.

pack-priv static <T, R> long

Returns:

previous observed state
markOutboundCancelled
(FluxSwitchOnFirst.AbstractSwitchOnFirstMain<T, R> instance)

Adds a flag which indicate that the outbound has already been cancelled.

pack-priv static <T, R> long

Returns:

previous observed state
markOutboundSubscribed
(FluxSwitchOnFirst.AbstractSwitchOnFirstMain<T, R> instance)

Adds a flag which indicate that the outbound has received subscription.

pack-priv static <T, R> long

Returns:

previous observed state
markOutboundTerminated
(FluxSwitchOnFirst.AbstractSwitchOnFirstMain<T, R> instance)

Adds a flag which indicate that the outbound has already been terminated with onComplete or onError.

public Object
scanUnsafe(Scannable.Attr<T>
a Attr to resolve for the component.
key
)

Overrides reactor.core.publisher.InternalFluxOperator.scanUnsafe.

Implements reactor.core.Scannable.scanUnsafe.

This method is used internally by components to define their key-value mappings in a single place.
public CoreSubscriber<? super T>
subscribeOrReturn(CoreSubscriber<? super R> actual)

Implements abstract reactor.core.publisher.InternalFluxOperator.subscribeOrReturn.

Implements reactor.core.publisher.OptimizableOperator.subscribeOrReturn.

Allow delegation of the subscription by returning a CoreSubscriber, or force subscription encapsulation by returning null.
Inherited from reactor.core.publisher.InternalFluxOperator:
nextOptimizableSourcesourcesubscribe