Class OnSubscribeUsing.DisposeAction<Resource>

java.lang.Object
java.util.concurrent.atomic.AtomicBoolean
rx.internal.operators.OnSubscribeUsing.DisposeAction<Resource>
All Implemented Interfaces:
Serializable, Action, Action0, Function, Subscription
Enclosing class:
OnSubscribeUsing<T,Resource>

static final class OnSubscribeUsing.DisposeAction<Resource> extends AtomicBoolean implements Action0, Subscription
  • Field Details

  • Constructor Details

  • Method Details

    • call

      public void call()
      Specified by:
      call in interface Action0
    • isUnsubscribed

      public boolean isUnsubscribed()
      Description copied from interface: Subscription
      Indicates whether this Subscription is currently unsubscribed.
      Specified by:
      isUnsubscribed in interface Subscription
      Returns:
      true if this Subscription is currently unsubscribed, false otherwise
    • unsubscribe

      public void unsubscribe()
      Description copied from interface: Subscription
      Stops the receipt of notifications on the Subscriber that was registered when this Subscription was received.

      This allows unregistering an Subscriber before it has finished receiving all events (i.e. before onCompleted is called).

      Specified by:
      unsubscribe in interface Subscription