| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final MaybeOnSubscribe |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | subscribeActual(MaybeObserver<? super T>
the MaybeObserver to handle, not null observer)Implements abstract io. MaybeObservers.
|
| source | back to summary |
|---|---|
| pack-priv final MaybeOnSubscribe<T> source | |
| MaybeCreate | back to summary |
|---|---|
| public MaybeCreate(MaybeOnSubscribe<T> source) | |
| subscribeActual | back to summary |
|---|---|
| protected void subscribeActual(MaybeObserver<? super T> observer) Implements abstract io. Doc from io. Implement this method in subclasses to handle the incoming There is no need to call any of the plugin hooks on the current
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final MaybeObserver | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements io. |
| public boolean | isDisposed()
Implements io. onSuccess(Object), onError(Throwable),
onComplete or a
successful tryOnError(Throwable).
|
| public void | |
| public void | onError(Throwable
the exception, not null t)Implements io. |
| public void | onSuccess(T
the value, not null value)Implements io. |
| public void | setCancellable(Cancellable
the cancellable resource, null is allowed c)Implements io. Disposable
or Cancellable will be disposed/cancelled.
|
| public void | setDisposable(Disposable
the disposable, null is allowed d)Implements io. Disposable
or Cancellable will be disposed/cancelled.
|
| public String | toString()
Overrides java. |
| public boolean | tryOnError(Throwable
the throwable error to signal if possible t)Implements io. Throwable error if the downstream
hasn't cancelled the sequence or is otherwise terminated, returning false
if the emission is not allowed to happen due to lifecycle restrictions.
|
| downstream | back to summary |
|---|---|
| pack-priv final MaybeObserver<? super T> downstream | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| Emitter | back to summary |
|---|---|
| pack-priv Emitter(MaybeObserver<? super T> downstream) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements io. Doc from io. Dispose the resource, the operation should be idempotent.
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Implements io. Doc from io. Returns true if the downstream disposed the sequence or the
emitter was terminated via This method is thread-safe.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements io. Doc from io. Signal the completion.
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements io. Doc from io. Signal an exception. | |
| onSuccess | back to summary |
|---|---|
| public void onSuccess(T value) Implements io. Doc from io. Signal a success value.
| |
| setCancellable | back to summary |
|---|---|
| public void setCancellable(Cancellable c) Implements io. Doc from io. Sets a Cancellable on this emitter; any previous
| |
| setDisposable | back to summary |
|---|---|
| public void setDisposable(Disposable d) Implements io. Doc from io. Sets a Disposable on this emitter; any previous
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the String representation of the current value. | |
| tryOnError | back to summary |
|---|---|
| public boolean tryOnError(Throwable t) Implements io. Doc from io. Attempts to emit the specified
Unlike History: 2.1.1 - experimental | |