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.Semaphore
notify
(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 boolean
hasNext()
T
next()
void
onComplete()
Notifies theObserver
that theObservable
has finished sending push-based notifications.void
onError(java.lang.Throwable e)
Notifies theObserver
that theObservable
has experienced an error condition.void
onNext(Notification<T> args)
Provides theObserver
with a new item to observe.void
remove()
-
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:Observer
Provides theObserver
with a new item to observe.The
Observable
may call this method 0 or more times.The
Observable
will 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:Observer
Notifies theObserver
that theObservable
has experienced an error condition.If the
Observable
calls this method, it will not thereafter callObserver.onNext(T)
orObserver.onComplete()
.
-
onComplete
public void onComplete()
Description copied from interface:Observer
Notifies theObserver
that theObservable
has finished sending push-based notifications.The
Observable
will not call this method if it callsObserver.onError(java.lang.Throwable)
.- Specified by:
onComplete
in interfaceObserver<T>
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<T>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<T>
-
-