Class FlowableBufferExactBoundary.BufferExactBoundarySubscriber<T, U extends Collection<? super T>, B>
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.FlowableBufferExactBoundary.BufferExactBoundarySubscriber<T,U,B>
- All Implemented Interfaces:
FlowableSubscriber<T>, Disposable, QueueDrain<U,U>, org.reactivestreams.Subscriber<T>, org.reactivestreams.Subscription
- Enclosing class:
FlowableBufferExactBoundary<T, U extends Collection<? super T>, B>
static final class FlowableBufferExactBoundary.BufferExactBoundarySubscriber<T, U extends Collection<? super T>, B>
extends QueueDrainSubscriber<T,U,U>
implements org.reactivestreams.Subscription, Disposable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final org.reactivestreams.Publisher<B> (package private) U(package private) Disposable(package private) org.reactivestreams.SubscriptionFields inherited from class QueueDrainSubscriber
cancelled, done, downstream, error, queue -
Constructor Summary
ConstructorsConstructorDescriptionBufferExactBoundarySubscriber(org.reactivestreams.Subscriber<? super U> actual, Supplier<U> bufferSupplier, org.reactivestreams.Publisher<B> boundary) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAccept the value and return true if forwarded.voidcancel()voiddispose()Dispose the resource, the operation should be idempotent.booleanReturns true if this resource has been disposed.(package private) voidnext()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) Methods inherited from class QueueDrainSubscriber
cancelled, done, enter, error, fastEnter, fastPathEmitMax, fastPathOrderedEmitMax, leave, produced, requested, requested
-
Field Details
-
bufferSupplier
-
boundary
-
upstream
org.reactivestreams.Subscription upstream -
other
Disposable other -
buffer
U extends Collection<? super T> buffer
-
-
Constructor Details
-
BufferExactBoundarySubscriber
-
-
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
-
next
void next() -
dispose
public void dispose()Description copied from interface:DisposableDispose the resource, the operation should be idempotent.- Specified by:
disposein interfaceDisposable
-
isDisposed
public boolean isDisposed()Description copied from interface:DisposableReturns true if this resource has been disposed.- Specified by:
isDisposedin interfaceDisposable- Returns:
- true if this resource has been disposed
-
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
-