|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrx.subscriptions.CompositeSubscription
public class CompositeSubscription
Subscription that represents a group of Subscriptions that are unsubscribed together.
| Constructor Summary | |
|---|---|
CompositeSubscription(java.util.List<Subscription> subscriptions)
|
|
CompositeSubscription(Subscription... subscriptions)
|
|
| Method Summary | |
|---|---|
void |
add(Subscription s)
|
void |
clear()
Remove and unsubscribe all subscriptions but do not unsubscribe the outer CompositeSubscription. |
boolean |
isUnsubscribed()
|
void |
remove(Subscription s)
Remove the Subscription and unsubscribe it. |
void |
unsubscribe()
Stop receiving notifications on the Observer that was registered when this Subscription was received. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeSubscription(java.util.List<Subscription> subscriptions)
public CompositeSubscription(Subscription... subscriptions)
| Method Detail |
|---|
public void clear()
public void remove(Subscription s)
Subscription and unsubscribe it.
s - public boolean isUnsubscribed()
public void add(Subscription s)
public void unsubscribe()
SubscriptionObserver that was registered when this Subscription was received.
This allows unregistering an Observer before it has finished receiving all events (ie. before onCompleted is called).
unsubscribe in interface Subscription
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||