|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrx.operators.SynchronizedObserver<T>
T - public final class SynchronizedObserver<T>
A thread-safe Observer for transitioning states in operators.
Execution rules are:
| Constructor Summary | |
|---|---|
SynchronizedObserver(Observer<? super T> Observer)
Used when synchronizing an Observer without access to the subscription. |
|
SynchronizedObserver(Observer<? super T> Observer,
SafeObservableSubscription subscription)
|
|
| Method Summary | |
|---|---|
void |
onCompleted()
Notifies the Observer that the Observable has finished sending push-based notifications. |
void |
onError(java.lang.Throwable e)
Notifies the Observer that the Observable has experienced an error condition. |
void |
onNext(T arg)
Provides the Observer with new data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SynchronizedObserver(Observer<? super T> Observer,
SafeObservableSubscription subscription)
public SynchronizedObserver(Observer<? super T> Observer)
Observer - | Method Detail |
|---|
public void onNext(T arg)
Observer
The Observable calls this closure 1 or more times, unless it calls onError in which case this closure may never be called.
The Observable will not call this closure again after it calls either onCompleted or onError.
onNext in interface Observer<T>public void onError(java.lang.Throwable e)
ObserverObservable has experienced an error condition.
If the Observable calls this closure, it will not thereafter call onNext or onCompleted.
onError in interface Observer<T>public void onCompleted()
ObserverObservable has finished sending push-based notifications.
The Observable will not call this closure if it calls onError.
onCompleted in interface Observer<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||