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:
Iterator<T>
,Observer<Notification<? extends T>>
,Subscription
- Enclosing class:
BlockingOperatorLatest
static final class BlockingOperatorLatest.LatestObserverIterator<T>
extends Subscriber<Notification<? extends T>>
implements Iterator<T>
Observer of source, iterator for output.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Notification
<? extends T> (package private) final Semaphore
(package private) final AtomicReference
<Notification<? extends T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
next()
void
Notifies the Observer that theObservable
has finished sending push-based notifications.void
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
notify
-
value
-
iNotif
Notification<? extends T> iNotif
-
-
Constructor Details
-
LatestObserverIterator
LatestObserverIterator()
-
-
Method Details
-
onNext
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
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() -
next
-
remove
public void remove()
-