public final class SubscriptionList extends java.lang.Object implements Subscription
| Constructor and Description |
|---|
SubscriptionList() |
SubscriptionList(Subscription... subscriptions) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Subscription s)
|
boolean |
isUnsubscribed()
Indicates whether this
Subscription is currently unsubscribed. |
void |
unsubscribe()
Unsubscribe from all of the subscriptions in the list, which stops the receipt of notifications on
the associated
Subscriber. |
public SubscriptionList()
public SubscriptionList(Subscription... subscriptions)
public boolean isUnsubscribed()
SubscriptionSubscription is currently unsubscribed.isUnsubscribed in interface Subscriptiontrue if this Subscription is currently unsubscribed, false otherwisepublic void add(Subscription s)
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.s - the Subscription to addpublic void unsubscribe()
Subscriber.unsubscribe in interface Subscription