Class SubscriptionList

    • Constructor Detail

      • SubscriptionList

        public SubscriptionList()
      • SubscriptionList

        public SubscriptionList(Subscription... subscriptions)
    • Method Detail

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

        public void add(Subscription s)
        Adds a new Subscription to this SubscriptionList if the SubscriptionList is not yet unsubscribed. If the SubscriptionList is unsubscribed, add will indicate this by explicitly unsubscribing the new Subscription as well.
        Parameters:
        s - the Subscription to add
      • unsubscribe

        public void unsubscribe()
        Unsubscribe from all of the subscriptions in the list, which stops the receipt of notifications on the associated Subscriber.