RxJava



rx.observers
Class SynchronizedObserver<T>

java.lang.Object
  extended by rx.observers.SynchronizedObserver<T>
Type Parameters:
T -
All Implemented Interfaces:
Observer<T>

Deprecated. Use SerializedObserver instead as it doesn't block threads during event notification.

@Deprecated
public final class SynchronizedObserver<T>
extends java.lang.Object
implements Observer<T>

Synchronize execution to be single-threaded.

This ONLY does synchronization. It does not involve itself in safety or subscriptions. See SafeSubscriber for that.


Constructor Summary
SynchronizedObserver(Observer<? super T> subscriber)
          Deprecated.  
SynchronizedObserver(Observer<? super T> subscriber, java.lang.Object lock)
          Deprecated.  
 
Method Summary
 void onCompleted()
          Deprecated. Notifies the Observer that the Observable has finished sending push-based notifications.
 void onError(java.lang.Throwable e)
          Deprecated. Notifies the Observer that the Observable has experienced an error condition.
 void onNext(T arg)
          Deprecated. 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

SynchronizedObserver

public SynchronizedObserver(Observer<? super T> subscriber)
Deprecated. 

SynchronizedObserver

public SynchronizedObserver(Observer<? super T> subscriber,
                            java.lang.Object lock)
Deprecated. 
Method Detail

onNext

public void onNext(T arg)
Deprecated. 
Description copied from interface: Observer
Provides the Observer with new data.

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.

Specified by:
onNext in interface Observer<T>

onError

public void onError(java.lang.Throwable e)
Deprecated. 
Description copied from interface: Observer
Notifies the Observer that the Observable has experienced an error condition.

If the Observable calls this closure, it will not thereafter call onNext or onCompleted.

Specified by:
onError in interface Observer<T>

onCompleted

public void onCompleted()
Deprecated. 
Description copied from interface: Observer
Notifies the Observer that the Observable has finished sending push-based notifications.

The Observable will not call this closure if it calls onError.

Specified by:
onCompleted in interface Observer<T>