Class ObservablePublish.InnerDisposable<T>

java.lang.Object
java.util.concurrent.atomic.AtomicReference<ObservablePublish.PublishConnection<T>>
io.reactivex.rxjava3.internal.operators.observable.ObservablePublish.InnerDisposable<T>
Type Parameters:
T - the element type
All Implemented Interfaces:
Disposable, Serializable
Enclosing class:
ObservablePublish<T>

static final class ObservablePublish.InnerDisposable<T> extends AtomicReference<ObservablePublish.PublishConnection<T>> implements Disposable
Intercepts the dispose signal from the downstream and removes itself from the connection's observers array at most once.
  • Field Details

  • Constructor Details

  • Method Details

    • dispose

      public void dispose()
      Description copied from interface: Disposable
      Dispose the resource, the operation should be idempotent.
      Specified by:
      dispose in interface Disposable
    • isDisposed

      public boolean isDisposed()
      Description copied from interface: Disposable
      Returns true if this resource has been disposed.
      Specified by:
      isDisposed in interface Disposable
      Returns:
      true if this resource has been disposed