Package org.aksw.commons.rx.op
Class FlowableOperatorCollapseRuns.SubscriberImpl
java.lang.Object
org.aksw.commons.rx.op.FlowableOperatorCollapseRuns.SubscriberImpl
- All Implemented Interfaces:
io.reactivex.rxjava3.core.FlowableSubscriber<T>,org.reactivestreams.Subscriber<T>,org.reactivestreams.Subscription
- Enclosing class:
- FlowableOperatorCollapseRuns<T,
K, V>
public class FlowableOperatorCollapseRuns.SubscriberImpl
extends Object
implements io.reactivex.rxjava3.core.FlowableSubscriber<T>, org.reactivestreams.Subscription
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected Vprotected Kprotected booleanprotected booleanprotected AtomicLongprotected Kprotected org.reactivestreams.Subscription -
Constructor Summary
ConstructorsConstructorDescriptionSubscriberImpl(org.reactivestreams.Subscriber<? super Map.Entry<K, V>> downstream) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()voidCalled when the upstream completesvoidvoidvoidonSubscribe(org.reactivestreams.Subscription s) voidrequest(long n) protected voidIf there is a remaining request upon onComplete then the last item can be sent out at that time.
-
Field Details
-
downstream
-
upstream
protected org.reactivestreams.Subscription upstream -
priorKey
-
currentKey
-
accNum
protected long accNum -
currentAcc
-
isUpstreamComplete
protected volatile boolean isUpstreamComplete -
lastItemSent
protected volatile boolean lastItemSent -
pending
-
-
Constructor Details
-
SubscriberImpl
-
-
Method Details
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s) -
onNext
- Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<T>
-
trySendLastItem
protected void trySendLastItem()If there is a remaining request upon onComplete then the last item can be sent out at that time. Otherwise we have to wait for additional requests. -
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
-