|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrx.subscriptions.RefCountSubscription
public final class RefCountSubscription
Keeps track of the sub-subscriptions and unsubscribes the underlying subscription once all sub-subscriptions have unsubscribed.
Constructor Summary | |
---|---|
RefCountSubscription(Subscription s)
Create a RefCountSubscription by wrapping the given non-null Subscription. |
Method Summary | |
---|---|
Subscription |
get()
Returns a new sub-subscription. |
Subscription |
getSubscription()
Deprecated. |
boolean |
isUnsubscribed()
Check if this subscription is already unsubscribed. |
void |
unsubscribe()
Stop receiving notifications on the Subscriber 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 RefCountSubscription(Subscription s)
s
- Method Detail |
---|
@Deprecated public Subscription getSubscription()
public Subscription get()
public boolean isUnsubscribed()
isUnsubscribed
in interface Subscription
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 (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 |