Class ObservableBufferExactBoundary.BufferExactBoundaryObserver<T,U extends Collection<? super T>,B>
java.lang.Object
io.reactivex.rxjava3.internal.observers.QueueDrainSubscriberPad0
io.reactivex.rxjava3.internal.observers.QueueDrainSubscriberWip
io.reactivex.rxjava3.internal.observers.QueueDrainSubscriberPad2
io.reactivex.rxjava3.internal.observers.QueueDrainObserver<T,U,U>
io.reactivex.rxjava3.internal.operators.observable.ObservableBufferExactBoundary.BufferExactBoundaryObserver<T,U,B>
- All Implemented Interfaces:
Observer<T>,Disposable,ObservableQueueDrain<U,U>
- Enclosing class:
ObservableBufferExactBoundary<T,U extends Collection<? super T>, B>
static final class ObservableBufferExactBoundary.BufferExactBoundaryObserver<T,U extends Collection<? super T>,B>
extends QueueDrainObserver<T,U,U>
implements Disposable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ObservableSource<B> (package private) U(package private) Disposable(package private) DisposableFields inherited from class io.reactivex.rxjava3.internal.observers.QueueDrainObserver
cancelled, done, downstream, error, queue -
Constructor Summary
ConstructorsConstructorDescriptionBufferExactBoundaryObserver(Observer<? super U> actual, Supplier<U> bufferSupplier, ObservableSource<B> boundary) -
Method Summary
Modifier and TypeMethodDescriptionvoidAccept the value and return true if forwarded.voiddispose()Dispose the resource, the operation should be idempotent.booleanReturns true if this resource has been disposed.(package private) voidnext()voidNotifies theObserverthat theObservablehas finished sending push-based notifications.voidNotifies theObserverthat theObservablehas experienced an error condition.voidProvides theObserverwith a new item to observe.voidProvides theObserverwith the means of cancelling (disposing) the connection (channel) with theObservablein both synchronous (from withinObserver.onNext(Object)) and asynchronous manner.Methods inherited from class io.reactivex.rxjava3.internal.observers.QueueDrainObserver
cancelled, done, enter, error, fastPathEmit, fastPathOrderedEmit, leave
-
Field Details
-
bufferSupplier
-
boundary
-
upstream
Disposable upstream -
other
Disposable other -
buffer
U extends Collection<? super T> buffer
-
-
Constructor Details
-
BufferExactBoundaryObserver
-
-
Method Details
-
onSubscribe
Description copied from interface:ObserverProvides theObserverwith the means of cancelling (disposing) the connection (channel) with theObservablein both synchronous (from withinObserver.onNext(Object)) and asynchronous manner.- Specified by:
onSubscribein interfaceObserver<T>- Parameters:
d- theDisposableinstance whoseDisposable.dispose()can be called anytime to cancel the connection
-
onNext
Description copied from interface:ObserverProvides theObserverwith a new item to observe.The
Observablemay call this method 0 or more times.The
Observablewill not call this method again after it calls eitherObserver.onComplete()orObserver.onError(java.lang.Throwable). -
onError
Description copied from interface:ObserverNotifies theObserverthat theObservablehas experienced an error condition.If the
Observablecalls this method, it will not thereafter callObserver.onNext(T)orObserver.onComplete(). -
onComplete
public void onComplete()Description copied from interface:ObserverNotifies theObserverthat theObservablehas finished sending push-based notifications.The
Observablewill not call this method if it callsObserver.onError(java.lang.Throwable).- Specified by:
onCompletein interfaceObserver<T>
-
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
-
next
void next() -
accept
Description copied from interface:ObservableQueueDrainAccept the value and return true if forwarded.- Specified by:
acceptin interfaceObservableQueueDrain<T,U extends Collection<? super T>> - Overrides:
acceptin classQueueDrainObserver<T,U extends Collection<? super T>, U extends Collection<? super T>> - Parameters:
a- the subscriber to deliver values tov- the value to deliver
-