| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean | |
| pack-priv Throwable | |
| pack-priv Disposable | |
| pack-priv T |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the observer terminated in time, false otherwisethe timeout value timeout, TimeUnit the time unit unit)Block until the observer terminates and return true; return false if the wait times out. |
| public T | Returns: the value received or null if no value receivedBlock until the latch is counted down then rethrow any exception received (wrapped if checked) or return the received value (null if none). |
| public T | Returns: the value received or defaultValue if no value receivedthe default value to return if no value was received defaultValue)Block until the latch is counted down then rethrow any exception received (wrapped if checked) or return the received value (the defaultValue if none). |
| public Throwable | Returns: the error received or nullBlock until the latch is counted down and return the error received or null if no error happened. |
| public Throwable | Returns: the error received or nullthe timeout value timeout, TimeUnit the time unit unit)Block until the latch is counted down and return the error received or when the wait is interrupted or times out, null otherwise. |
| pack-priv void | |
| public void | onComplete()
Implements io. |
| public void | onError(Throwable
the exception encountered by the Single e)Implements io. Single has experienced an error condition.
|
| public void | onSubscribe(Disposable
the Disposable instance whose d)Disposable#dispose() can
be called anytime to cancel the connectionImplements io. onSubscribe(Disposable) itself) and asynchronous manner.
|
| public void | onSuccess(T
the item emitted by the Single value)Implements io. Single has finished sending
push-based notifications.
|
| cancelled | back to summary |
|---|---|
| pack-priv volatile boolean cancelled | |
| error | back to summary |
|---|---|
| pack-priv Throwable error | |
| upstream | back to summary |
|---|---|
| pack-priv Disposable upstream | |
| value | back to summary |
|---|---|
| pack-priv T value | |
| BlockingMultiObserver | back to summary |
|---|---|
| public BlockingMultiObserver() | |
| blockingAwait | back to summary |
|---|---|
| public boolean blockingAwait(long timeout, TimeUnit unit) Block until the observer terminates and return true; return false if the wait times out.
| |
| blockingGet | back to summary |
|---|---|
| public T blockingGet() Block until the latch is counted down then rethrow any exception received (wrapped if checked) or return the received value (null if none).
| |
| blockingGet | back to summary |
|---|---|
| public T blockingGet(T defaultValue) Block until the latch is counted down then rethrow any exception received (wrapped if checked) or return the received value (the defaultValue if none).
| |
| blockingGetError | back to summary |
|---|---|
| public Throwable blockingGetError() Block until the latch is counted down and return the error received or null if no error happened.
| |
| blockingGetError | back to summary |
|---|---|
| public Throwable blockingGetError(long timeout, TimeUnit unit) Block until the latch is counted down and return the error received or when the wait is interrupted or times out, null otherwise. | |
| dispose | back to summary |
|---|---|
| pack-priv void dispose() | |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements io. Doc from io. Called once the deferred computation completes normally.
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Implements io. Doc from io. Notifies the SingleObserver that the
If the | |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Disposable d) Implements io. Doc from io. Provides the SingleObserver with the means of cancelling (disposing) the
connection (channel) with the Single in both
synchronous (from within
| |
| onSuccess | back to summary |
|---|---|
| public void onSuccess(T value) Implements io. Doc from io. Notifies the SingleObserver with a single item and that the
The
| |