public final class MultipleAssignmentSubscription extends Objectimplements Subscription
Observable to exit the loop if unsubscribed.
| Constructor and Description |
|---|
MultipleAssignmentSubscription()
|
| Modifier and Type | Method and Description |
|---|---|
Subscription |
get()
Gets the underlying subscription.
|
boolean |
isUnsubscribed()
Indicates whether this
Subscription is currently unsubscribed.
|
void |
set(Subscription
Sets the underlying subscription.
|
void |
unsubscribe()
Stops the receipt of notifications on the
Subscriber that was registered when this Subscription was received.
|
public boolean isUnsubscribed()
Subscription
Subscription is currently unsubscribed.
isUnsubscribed in interface
Subscription
true if this
Subscription is currently unsubscribed,
false otherwise
public void unsubscribe()
Subscription
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).
public void set(Subscriptions)
MultipleAssignmentSubscription is already unsubscribed, setting a new subscription causes the new subscription to also be immediately unsubscribed.
s - the
Subscription to set
IllegalArgumentException - if
s is
null
public Subscriptionget()
Subscription that underlies the
MultipleAssignmentSubscription