The difference to ObservablePublish is that when the upstream terminates, late observers will receive that terminal event until the connection is disposed and the ConnectableObservable is reset to its fresh state.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | ObservablePublish.InnerDisposable<
the element type T>Intercepts the dispose signal from the downstream and removes itself from the connection's observers array at most once. |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final AtomicReference | |
| pack-priv final ObservableSource |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | reset()
Implements abstract io. ConnectableObservable into its fresh state if it has terminated
or has been disposed.
|
| public ObservableSource | source()
Implements io. |
| protected void |
| current | back to summary |
|---|---|
| pack-priv final AtomicReference<ObservablePublish. | |
| source | back to summary |
|---|---|
| pack-priv final ObservableSource<T> source | |
| ObservablePublish | back to summary |
|---|---|
| public ObservablePublish(ObservableSource<T> source) | |
| connect | back to summary |
|---|---|
public void connect(Consumer<? super Disposable> connection)
| |
| reset | back to summary |
|---|---|
| public void reset() Implements abstract io. Doc from io. Resets this
Calling this method on a fresh or active
| |
| source | back to summary |
|---|---|
| public ObservableSource Implements io. Doc from io. Returns the upstream source of this Observable. Allows discovering the chain of observables.
| |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(Observer<? super T> observer)
| |
| 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. |
| downstream | back to summary |
|---|---|
| pack-priv final Observer<? super T> downstream | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| InnerDisposable | back to summary |
|---|---|
| pack-priv InnerDisposable(Observer<? super T> downstream, ObservablePublish. | |
| 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 this resource has been disposed.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final AtomicBoolean | |
| pack-priv final AtomicReference | |
| pack-priv static final ObservablePublish. | |
| pack-priv Throwable | |
| private static final long | |
| pack-priv static final ObservablePublish. | |
| pack-priv final AtomicReference |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | dispose()
Implements io. |
| public boolean | isDisposed()
Implements io. |
| public void | onComplete()
Implements io. Observer that the Observable has finished sending push-based notifications.
|
| public void | |
| public void | onNext(T
the item emitted by the Observable t)Implements io. Observer with a new item to observe.
|
| public void | |
| public void |
| connect | back to summary |
|---|---|
| pack-priv final AtomicBoolean connect | |
| current | back to summary |
|---|---|
| pack-priv final AtomicReference<ObservablePublish. | |
| EMPTY | back to summary |
|---|---|
pack-priv static final ObservablePublish.
| |
| error | back to summary |
|---|---|
| pack-priv Throwable error | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| TERMINATED | back to summary |
|---|---|
pack-priv static final ObservablePublish.
| |
| upstream | back to summary |
|---|---|
| pack-priv final AtomicReference<Disposable> upstream | |
| PublishConnection | back to summary |
|---|---|
pack-priv PublishConnection(AtomicReference<ObservablePublish.
| |
| add | back to summary |
|---|---|
| public boolean add(ObservablePublish. | |
| 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 this resource has been disposed.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements io. Doc from io. Notifies the
The
| |
| onError | back to summary |
|---|---|
public void onError(Throwable e)
| |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements io. Doc from io. Provides the
The
The
| |
| onSubscribe | back to summary |
|---|---|
public void onSubscribe(Disposable d)
| |
| remove | back to summary |
|---|---|
public void remove(ObservablePublish.
| |