Package rx.subscriptions
Class Subscriptions.FutureSubscription
- java.lang.Object
-
- rx.subscriptions.Subscriptions.FutureSubscription
-
- All Implemented Interfaces:
Subscription
- Enclosing class:
- Subscriptions
static final class Subscriptions.FutureSubscription extends java.lang.Object implements Subscription
Naming classes helps with debugging.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.concurrent.Future<?>
f
-
Constructor Summary
Constructors Constructor Description FutureSubscription(java.util.concurrent.Future<?> f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isUnsubscribed()
Indicates whether thisSubscription
is currently unsubscribed.void
unsubscribe()
Stops the receipt of notifications on theSubscriber
that was registered when this Subscription was received.
-
-
-
Method Detail
-
unsubscribe
public void unsubscribe()
Description copied from interface:Subscription
Stops the receipt of notifications on theSubscriber
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).- Specified by:
unsubscribe
in interfaceSubscription
-
isUnsubscribed
public boolean isUnsubscribed()
Description copied from interface:Subscription
Indicates whether thisSubscription
is currently unsubscribed.- Specified by:
isUnsubscribed
in interfaceSubscription
- Returns:
true
if thisSubscription
is currently unsubscribed,false
otherwise
-
-