Class FlowableBufferTimed.BufferSkipBoundedSubscriber<T,U extends java.util.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>
,java.lang.Runnable
,org.reactivestreams.Subscriber<T>
,org.reactivestreams.Subscription
- Enclosing class:
- FlowableBufferTimed<T,U extends java.util.Collection<? super T>>
static final class FlowableBufferTimed.BufferSkipBoundedSubscriber<T,U extends java.util.Collection<? super T>> extends QueueDrainSubscriber<T,U,U> implements org.reactivestreams.Subscription, java.lang.Runnable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
FlowableBufferTimed.BufferSkipBoundedSubscriber.RemoveFromBuffer
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<U>
buffers
(package private) Supplier<U>
bufferSupplier
(package private) long
timeskip
(package private) long
timespan
(package private) java.util.concurrent.TimeUnit
unit
(package private) org.reactivestreams.Subscription
upstream
(package private) Scheduler.Worker
w
-
Fields inherited from class io.reactivex.rxjava3.internal.subscribers.QueueDrainSubscriber
cancelled, done, downstream, error, queue
-
-
Constructor Summary
Constructors Constructor Description BufferSkipBoundedSubscriber(org.reactivestreams.Subscriber<? super U> actual, Supplier<U> bufferSupplier, long timespan, long timeskip, java.util.concurrent.TimeUnit unit, Scheduler.Worker w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(org.reactivestreams.Subscriber<? super U> a, U v)
Accept the value and return true if forwarded.void
cancel()
(package private) void
clear()
void
onComplete()
void
onError(java.lang.Throwable t)
void
onNext(T t)
void
onSubscribe(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)
.void
request(long n)
void
run()
-
Methods inherited from class io.reactivex.rxjava3.internal.subscribers.QueueDrainSubscriber
cancelled, done, enter, error, fastEnter, fastPathEmitMax, fastPathOrderedEmitMax, leave, produced, requested, requested
-
-
-
-
Field Detail
-
timespan
final long timespan
-
timeskip
final long timeskip
-
unit
final java.util.concurrent.TimeUnit unit
-
w
final Scheduler.Worker w
-
upstream
org.reactivestreams.Subscription upstream
-
-
Constructor Detail
-
BufferSkipBoundedSubscriber
BufferSkipBoundedSubscriber(org.reactivestreams.Subscriber<? super U> actual, Supplier<U> bufferSupplier, long timespan, long timeskip, java.util.concurrent.TimeUnit unit, Scheduler.Worker w)
-
-
Method Detail
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s)
Description copied from interface:FlowableSubscriber
Implementors 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:
onSubscribe
in interfaceFlowableSubscriber<T>
- Specified by:
onSubscribe
in interfaceorg.reactivestreams.Subscriber<T>
-
onError
public void onError(java.lang.Throwable t)
- Specified by:
onError
in interfaceorg.reactivestreams.Subscriber<T>
-
onComplete
public void onComplete()
- Specified by:
onComplete
in interfaceorg.reactivestreams.Subscriber<T>
-
request
public void request(long n)
- Specified by:
request
in interfaceorg.reactivestreams.Subscription
-
cancel
public void cancel()
- Specified by:
cancel
in interfaceorg.reactivestreams.Subscription
-
clear
void clear()
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
accept
public boolean accept(org.reactivestreams.Subscriber<? super U> a, U v)
Description copied from interface:QueueDrain
Accept the value and return true if forwarded.- Specified by:
accept
in interfaceQueueDrain<T,U extends java.util.Collection<? super T>>
- Overrides:
accept
in classQueueDrainSubscriber<T,U extends java.util.Collection<? super T>,U extends java.util.Collection<? super T>>
- Parameters:
a
- the subscriberv
- the value- Returns:
- true if the value was delivered
-
-