public final class SubscriptionList extends Objectimplements Subscription
| Constructor and Description |
|---|
SubscriptionList()
|
SubscriptionList(Subscription
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Subscription
|
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()
Subscription
Subscription is currently unsubscribed.
isUnsubscribed in interface
Subscription
true if this
Subscription is currently unsubscribed,
false otherwise
public void add(Subscriptions)
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 add
public void unsubscribe()
Subscriber.