Package rx.subscriptions
Class Subscriptions.FutureSubscription
java.lang.Object
rx.subscriptions.Subscriptions.FutureSubscription
- All Implemented Interfaces:
Subscription
- Enclosing class:
Subscriptions
Naming classes helps with debugging.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether thisSubscriptionis currently unsubscribed.voidStops the receipt of notifications on theSubscriberthat was registered when this Subscription was received.
-
Field Details
-
f
-
-
Constructor Details
-
FutureSubscription
-
-
Method Details
-
unsubscribe
public void unsubscribe()Description copied from interface:SubscriptionStops the receipt of notifications on theSubscriberthat was registered when this Subscription was received.This allows unregistering an
Subscriberbefore it has finished receiving all events (i.e. before onCompleted is called).- Specified by:
unsubscribein interfaceSubscription
-
isUnsubscribed
public boolean isUnsubscribed()Description copied from interface:SubscriptionIndicates whether thisSubscriptionis currently unsubscribed.- Specified by:
isUnsubscribedin interfaceSubscription- Returns:
trueif thisSubscriptionis currently unsubscribed,falseotherwise
-