Class BlockingObservableLatest.BlockingObservableLatestIterator<T>
- java.lang.Object
-
- io.reactivex.rxjava3.observers.DisposableObserver<Notification<T>>
-
- io.reactivex.rxjava3.internal.operators.observable.BlockingObservableLatest.BlockingObservableLatestIterator<T>
-
- All Implemented Interfaces:
Observer<Notification<T>>,Disposable,java.util.Iterator<T>
- Enclosing class:
- BlockingObservableLatest<T>
static final class BlockingObservableLatest.BlockingObservableLatestIterator<T> extends DisposableObserver<Notification<T>> implements java.util.Iterator<T>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Notification<T>iteratorNotification(package private) java.util.concurrent.Semaphorenotify(package private) java.util.concurrent.atomic.AtomicReference<Notification<T>>value
-
Constructor Summary
Constructors Constructor Description BlockingObservableLatestIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Tnext()voidonComplete()Notifies theObserverthat theObservablehas finished sending push-based notifications.voidonError(java.lang.Throwable e)Notifies theObserverthat theObservablehas experienced an error condition.voidonNext(Notification<T> args)Provides theObserverwith a new item to observe.voidremove()-
Methods inherited from class io.reactivex.rxjava3.observers.DisposableObserver
dispose, isDisposed, onStart, onSubscribe
-
-
-
-
Field Detail
-
iteratorNotification
Notification<T> iteratorNotification
-
notify
final java.util.concurrent.Semaphore notify
-
value
final java.util.concurrent.atomic.AtomicReference<Notification<T>> value
-
-
Method Detail
-
onNext
public void onNext(Notification<T> args)
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
public void onError(java.lang.Throwable e)
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>
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<T>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<T>
-
-