| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | ObservableCreate.SerializedEmitter<
the value type T>Serializes calls to onNext, onError and onComplete. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ObservableOnSubscribe |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | subscribeActual(Observer<? super T>
the incoming Observer, never null observer)Implements abstract io. Observers.
|
| source | back to summary |
|---|---|
| pack-priv final ObservableOnSubscribe<T> source | |
| ObservableCreate | back to summary |
|---|---|
| public ObservableCreate(ObservableOnSubscribe<T> source) | |
| subscribeActual | back to summary |
|---|---|
| protected void subscribeActual(Observer<? super T> observer) Implements abstract io. Doc from io. Operator implementations (both source and intermediate) should implement this method that
performs the necessary business logic and handles 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 Observer | |
| 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. onError(Throwable), onComplete or a
successful tryOnError(Throwable).
|
| public void | |
| public void | onError(Throwable
the Throwable to signal, not null t)Implements io. |
| public void | onNext(T
the value to signal, not null t)Implements io. |
| public ObservableEmitter | serialize()
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.
|
| observer | back to summary |
|---|---|
| pack-priv final Observer<? super T> observer | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| CreateEmitter | back to summary |
|---|---|
| pack-priv CreateEmitter(Observer<? super T> observer) | |
| 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 a completion.
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements io. Doc from io. Signal a Throwable exception. | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements io. Doc from io. Signal a normal value.
| |
| serialize | back to summary |
|---|---|
| public ObservableEmitter Implements io. Doc from io. Ensures that calls to onNext, onError and onComplete are properly serialized.
| |
| 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 | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean | |
| pack-priv final ObservableEmitter | |
| pack-priv final AtomicThrowable | |
| pack-priv final SpscLinkedArrayQueue | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| public boolean | isDisposed()
Implements io. onError(Throwable), onComplete or a
successful tryOnError(Throwable).
|
| public void | |
| public void | onError(Throwable
the Throwable to signal, not null t)Implements io. |
| public void | onNext(T
the value to signal, not null t)Implements io. |
| public ObservableEmitter | serialize()
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.
|
| done | back to summary |
|---|---|
| pack-priv volatile boolean done | |
| emitter | back to summary |
|---|---|
| pack-priv final ObservableEmitter<T> emitter | |
| error | back to summary |
|---|---|
| pack-priv final AtomicThrowable error | |
| queue | back to summary |
|---|---|
| pack-priv final SpscLinkedArrayQueue<T> queue | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| SerializedEmitter | back to summary |
|---|---|
| pack-priv SerializedEmitter(ObservableEmitter<T> emitter) | |
| drain | back to summary |
|---|---|
| pack-priv void drain() | |
| drainLoop | back to summary |
|---|---|
| pack-priv void drainLoop() | |
| 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 a completion.
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements io. Doc from io. Signal a Throwable exception. | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements io. Doc from io. Signal a normal value.
| |
| serialize | back to summary |
|---|---|
| public ObservableEmitter Implements io. Doc from io. Ensures that calls to onNext, onError and onComplete are properly serialized.
| |
| 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 | |