Package rx.internal.operators
Class BlockingOperatorLatest.LatestObserverIterator<T>
- java.lang.Object
-
- rx.Subscriber<Notification<? extends T>>
-
- rx.internal.operators.BlockingOperatorLatest.LatestObserverIterator<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>
,Observer<Notification<? extends T>>
,Subscription
- Enclosing class:
- BlockingOperatorLatest
static final class BlockingOperatorLatest.LatestObserverIterator<T> extends Subscriber<Notification<? extends T>> implements java.util.Iterator<T>
Observer of source, iterator for output.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Notification<? extends T>
iNotif
(package private) java.util.concurrent.Semaphore
notify
(package private) java.util.concurrent.atomic.AtomicReference<Notification<? extends T>>
value
-
Constructor Summary
Constructors Constructor Description LatestObserverIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
T
next()
void
onCompleted()
Notifies the Observer that theObservable
has finished sending push-based notifications.void
onError(java.lang.Throwable e)
Notifies the Observer that theObservable
has experienced an error condition.void
onNext(Notification<? extends T> args)
Provides the Observer with a new item to observe.void
remove()
-
Methods inherited from class rx.Subscriber
add, isUnsubscribed, onStart, request, setProducer, unsubscribe
-
-
-
-
Field Detail
-
notify
final java.util.concurrent.Semaphore notify
-
value
final java.util.concurrent.atomic.AtomicReference<Notification<? extends T>> value
-
iNotif
Notification<? extends T> iNotif
-
-
Method Detail
-
onNext
public void onNext(Notification<? extends T> args)
Description copied from interface:Observer
Provides the Observer 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.onCompleted()
orObserver.onError(java.lang.Throwable)
.
-
onError
public void onError(java.lang.Throwable e)
Description copied from interface:Observer
Notifies the Observer that theObservable
has experienced an error condition.If the
Observable
calls this method, it will not thereafter callObserver.onNext(T)
orObserver.onCompleted()
.
-
onCompleted
public void onCompleted()
Description copied from interface:Observer
Notifies the Observer that theObservable
has finished sending push-based notifications.The
Observable
will not call this method if it callsObserver.onError(java.lang.Throwable)
.- Specified by:
onCompleted
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>
-
-