Package org.aksw.commons.rx.op
Class FlowableOperatorReadAhead.SubscriberImpl
java.lang.Object
org.aksw.commons.rx.op.FlowableOperatorReadAhead.SubscriberImpl
- All Implemented Interfaces:
io.reactivex.rxjava3.core.FlowableSubscriber<T>,org.reactivestreams.Subscriber<T>,org.reactivestreams.Subscription
- Enclosing class:
- FlowableOperatorReadAhead<T>
public class FlowableOperatorReadAhead.SubscriberImpl
extends Object
implements io.reactivex.rxjava3.core.FlowableSubscriber<T>, org.reactivestreams.Subscription
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.reactivestreams.Subscriber<? super T>protected AtomicLongprotected booleanprotected AtomicIntegerprotected org.reactivestreams.Subscription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()protected voiddrain()From the queue send out as many items as requestedvoidCalled when the upstream completesvoidvoidvoidonSubscribe(org.reactivestreams.Subscription s) voidrequest(long n)
-
Field Details
-
downstream
-
upstream
protected org.reactivestreams.Subscription upstream -
isUpstreamCompleted
protected boolean isUpstreamCompleted -
queue
-
downstreamDemand
-
readAheadCapacity
-
-
Constructor Details
-
SubscriberImpl
-
-
Method Details
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s) -
drain
protected void drain()From the queue send out as many items as requested -
onNext
- Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<T>
-
onComplete
public void onComplete()Called when the upstream completes- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<T>
-
onError
- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<T>
-
request
public void request(long n) - Specified by:
requestin interfaceorg.reactivestreams.Subscription
-
cancel
public void cancel()- Specified by:
cancelin interfaceorg.reactivestreams.Subscription
-