Class FlowableBufferTimed.BufferSkipBoundedSubscriber<T, U extends Collection<? super T>>
java.lang.Object
io.reactivex.rxjava3.internal.subscribers.QueueDrainSubscriberPad0
io.reactivex.rxjava3.internal.subscribers.QueueDrainSubscriberWip
io.reactivex.rxjava3.internal.subscribers.QueueDrainSubscriberPad2
io.reactivex.rxjava3.internal.subscribers.QueueDrainSubscriberPad3
io.reactivex.rxjava3.internal.subscribers.QueueDrainSubscriberPad4
io.reactivex.rxjava3.internal.subscribers.QueueDrainSubscriber<T,U,U>
io.reactivex.rxjava3.internal.operators.flowable.FlowableBufferTimed.BufferSkipBoundedSubscriber<T,U>
- All Implemented Interfaces:
FlowableSubscriber<T>, QueueDrain<U,U>, Runnable, org.reactivestreams.Subscriber<T>, org.reactivestreams.Subscription
- Enclosing class:
FlowableBufferTimed<T, U extends Collection<? super T>>
static final class FlowableBufferTimed.BufferSkipBoundedSubscriber<T, U extends Collection<? super T>>
extends QueueDrainSubscriber<T,U,U>
implements org.reactivestreams.Subscription, Runnable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) final class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final long(package private) final long(package private) final TimeUnit(package private) org.reactivestreams.Subscription(package private) final Scheduler.WorkerFields inherited from class QueueDrainSubscriber
cancelled, done, downstream, error, queue -
Constructor Summary
ConstructorsConstructorDescriptionBufferSkipBoundedSubscriber(org.reactivestreams.Subscriber<? super U> actual, Supplier<U> bufferSupplier, long timespan, long timeskip, TimeUnit unit, Scheduler.Worker w) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAccept the value and return true if forwarded.voidcancel()(package private) voidclear()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) voidrun()Methods inherited from class QueueDrainSubscriber
cancelled, done, enter, error, fastEnter, fastPathEmitMax, fastPathOrderedEmitMax, leave, produced, requested, requested
-
Field Details
-
bufferSupplier
-
timespan
final long timespan -
timeskip
final long timeskip -
unit
-
w
-
buffers
-
upstream
org.reactivestreams.Subscription upstream
-
-
Constructor Details
-
BufferSkipBoundedSubscriber
BufferSkipBoundedSubscriber(org.reactivestreams.Subscriber<? super U> actual, Supplier<U> bufferSupplier, long timespan, long timeskip, TimeUnit unit, Scheduler.Worker w)
-
-
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
-
onError
-
onComplete
public void onComplete()- Specified by:
onCompletein 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
-
clear
void clear() -
run
-
accept
Description copied from interface:QueueDrainAccept the value and return true if forwarded.- Specified by:
acceptin interfaceQueueDrain<T, U extends Collection<? super T>>- Overrides:
acceptin classQueueDrainSubscriber<T, U extends Collection<? super T>, U extends Collection<? super T>>- Parameters:
a- the subscriberv- the value- Returns:
- true if the value was delivered
-