Class RefCountSubscription.InnerSubscription

java.lang.Object
java.lang.Number
java.util.concurrent.atomic.AtomicInteger
rx.subscriptions.RefCountSubscription.InnerSubscription
All Implemented Interfaces:
Serializable, Subscription
Enclosing class:
RefCountSubscription

static final class RefCountSubscription.InnerSubscription extends AtomicInteger implements Subscription
The individual sub-subscriptions.
  • Field Details

  • Constructor Details

  • Method Details

    • 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
    • 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