T - the element typepublic class SafeObserver<T> extends java.lang.Object implements Observer<T>
| Modifier and Type | Field and Description |
|---|---|
protected java.io.Closeable |
handle
The close handle.
|
protected Observer<? super T> |
o
The observer.
|
| Constructor and Description |
|---|
SafeObserver(Observer<? super T> o,
java.io.Closeable handle)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(java.lang.Throwable ex)
An exception is received.
|
void |
finish()
No more values to expect.
|
void |
next(T value)
The next value is received.
|
public void error(@Nonnull
java.lang.Throwable ex)
BaseObservererror in interface BaseObserverex - the exceptionpublic void finish()
BaseObserverfinish in interface BaseObserver