Class FlowableSwitchMap.SwitchMapInnerSubscriber<T,R>
java.lang.Object
java.util.concurrent.atomic.AtomicReference<org.reactivestreams.Subscription>
io.reactivex.rxjava3.internal.operators.flowable.FlowableSwitchMap.SwitchMapInnerSubscriber<T,R>
- All Implemented Interfaces:
FlowableSubscriber<R>,Serializable,org.reactivestreams.Subscriber<R>
- Enclosing class:
FlowableSwitchMap<T,R>
static final class FlowableSwitchMap.SwitchMapInnerSubscriber<T,R>
extends AtomicReference<org.reactivestreams.Subscription>
implements FlowableSubscriber<R>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int(package private) boolean(package private) int(package private) final long(package private) final FlowableSwitchMap.SwitchMapSubscriber<T, R> (package private) SimpleQueue<R> private static final long -
Constructor Summary
ConstructorsConstructorDescriptionSwitchMapInnerSubscriber(FlowableSwitchMap.SwitchMapSubscriber<T, R> parent, long index, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()voidvoidvoidvoidonSubscribe(org.reactivestreams.Subscription s) Implementors of this method should make sure everything that needs to be visible inSubscriber.onNext(Object)is established before callingSubscription.request(long).voidrequest(long n) Methods inherited from class java.util.concurrent.atomic.AtomicReference
accumulateAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndAccumulate, getAndSet, getAndUpdate, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
parent
-
index
final long index -
bufferSize
final int bufferSize -
queue
-
done
volatile boolean done -
fusionMode
int fusionMode
-
-
Constructor Details
-
SwitchMapInnerSubscriber
SwitchMapInnerSubscriber(FlowableSwitchMap.SwitchMapSubscriber<T, R> parent, long index, int bufferSize)
-
-
Method Details
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s) Description copied from interface:FlowableSubscriberImplementors of this method should make sure everything that needs to be visible inSubscriber.onNext(Object)is established before callingSubscription.request(long). In practice this means no initialization should happen after therequest()call and additional behavior is thread safe in respect toonNext.- Specified by:
onSubscribein interfaceFlowableSubscriber<T>- Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<T>
-
onNext
- Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<T>
-
onError
- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<T>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<T>
-
cancel
public void cancel() -
request
public void request(long n)
-