Class FlowableWindowTimed.WindowExactBoundedSubscriber<T>
java.lang.Object
java.lang.Number
java.util.concurrent.atomic.AtomicInteger
io.reactivex.rxjava3.internal.operators.flowable.FlowableWindowTimed.AbstractWindowSubscriber<T>
io.reactivex.rxjava3.internal.operators.flowable.FlowableWindowTimed.WindowExactBoundedSubscriber<T>
- All Implemented Interfaces:
FlowableSubscriber<T>,Serializable,Runnable,org.reactivestreams.Subscriber<T>,org.reactivestreams.Subscription
- Enclosing class:
FlowableWindowTimed<T>
static final class FlowableWindowTimed.WindowExactBoundedSubscriber<T>
extends FlowableWindowTimed.AbstractWindowSubscriber<T>
implements Runnable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) long(package private) final long(package private) final boolean(package private) final Schedulerprivate static final long(package private) final SequentialDisposable(package private) UnicastProcessor<T> (package private) final Scheduler.WorkerFields inherited from class io.reactivex.rxjava3.internal.operators.flowable.FlowableWindowTimed.AbstractWindowSubscriber
bufferSize, done, downstream, downstreamCancelled, emitted, error, queue, requested, timespan, unit, upstream, upstreamCancelled, windowCount -
Constructor Summary
ConstructorsConstructorDescriptionWindowExactBoundedSubscriber(org.reactivestreams.Subscriber<? super Flowable<T>> actual, long timespan, TimeUnit unit, Scheduler scheduler, int bufferSize, long maxSize, boolean restartTimerOnMaxSize) -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) void(package private) void(package private) UnicastProcessor<T> createNewWindow(UnicastProcessor<T> window) (package private) voiddrain()voidrun()Methods inherited from class io.reactivex.rxjava3.internal.operators.flowable.FlowableWindowTimed.AbstractWindowSubscriber
cancel, onComplete, onError, onNext, onSubscribe, request, windowDoneMethods inherited from class java.util.concurrent.atomic.AtomicInteger
accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, intValue, lazySet, longValue, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatileMethods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
scheduler
-
restartTimerOnMaxSize
final boolean restartTimerOnMaxSize -
maxSize
final long maxSize -
worker
-
count
long count -
window
UnicastProcessor<T> window -
timer
-
-
Constructor Details
-
WindowExactBoundedSubscriber
-
-
Method Details
-
createFirstWindow
void createFirstWindow()- Specified by:
createFirstWindowin classFlowableWindowTimed.AbstractWindowSubscriber<T>
-
run
public void run() -
cleanupResources
void cleanupResources()- Specified by:
cleanupResourcesin classFlowableWindowTimed.AbstractWindowSubscriber<T>
-
boundary
-
drain
void drain()- Specified by:
drainin classFlowableWindowTimed.AbstractWindowSubscriber<T>
-
createNewWindow
-