Class FlowableOperatorConditionalConcat.SubscriberImpl
java.lang.Object
org.aksw.commons.rx.op.FlowableOperatorConditionalConcat.SubscriberImpl
- All Implemented Interfaces:
io.reactivex.rxjava3.core.FlowableSubscriber<T>, org.reactivestreams.Subscriber<T>, org.reactivestreams.Subscription
- Enclosing class:
FlowableOperatorConditionalConcat<T,C>
public class FlowableOperatorConditionalConcat.SubscriberImpl
extends Object
implements io.reactivex.rxjava3.core.FlowableSubscriber<T>, org.reactivestreams.Subscription
This subscriber first consumes the initial upstream and caches all seen items.
Afterwards, a new flowable is created from those items and the subscriber attaches itself
to that new flowable.
- Author:
- raven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Accumulator<T, ?, C> protected org.reactivestreams.Subscriber<? super T> protected AtomicLongprotected booleanprotected org.reactivestreams.Subscription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()voidCalled when the upstream completesvoidvoidvoidonSubscribe(org.reactivestreams.Subscription s) voidrequest(long n)
-
Field Details
-
downstream
-
upstream
protected org.reactivestreams.Subscription upstream -
isInitialUpstreamComplete
protected boolean isInitialUpstreamComplete -
accumulator
-
downstreamDemand
-
-
Constructor Details
-
SubscriberImpl
-
-
Method Details
-
onSubscribe
-
onNext
-
onComplete
public void onComplete()Called when the upstream completes- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<T>
-
onError
-
request
public void request(long n) - Specified by:
requestin interfaceorg.reactivestreams.Subscription
-
cancel
public void cancel()- Specified by:
cancelin interfaceorg.reactivestreams.Subscription
-