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.Semaphorenotify(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 booleanhasNext()Tnext()voidonCompleted()Notifies the Observer that theObservablehas finished sending push-based notifications.voidonError(java.lang.Throwable e)Notifies the Observer that theObservablehas experienced an error condition.voidonNext(Notification<? extends T> args)Provides the Observer with a new item to observe.voidremove()-
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:ObserverProvides the Observer with 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.onCompleted()orObserver.onError(java.lang.Throwable).
-
onError
public void onError(java.lang.Throwable e)
Description copied from interface:ObserverNotifies the Observer that theObservablehas experienced an error condition.If the
Observablecalls this method, it will not thereafter callObserver.onNext(T)orObserver.onCompleted().
-
onCompleted
public void onCompleted()
Description copied from interface:ObserverNotifies the Observer that theObservablehas finished sending push-based notifications.The
Observablewill not call this method if it callsObserver.onError(java.lang.Throwable).- Specified by:
onCompletedin interfaceObserver<T>
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<T>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<T>
-
-