|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrx.subscriptions.Subscriptions
public class Subscriptions
Helper methods and utilities for creating and working with Subscription objects
| Constructor Summary | |
|---|---|
Subscriptions()
|
|
| Method Summary | |
|---|---|
static Subscription |
create(Action0 unsubscribe)
A Subscription which invokes the given Action0 when unsubscribed. |
static Subscription |
create(java.util.concurrent.Future<?> f)
Deprecated. Use Subscriptions.from(Future) instead |
static CompositeSubscription |
create(Subscription... subscriptions)
Deprecated. Use Subscriptions.from(Subscription...) instead |
static Subscription |
empty()
A Subscription that does nothing. |
static Subscription |
from(java.util.concurrent.Future<?> f)
A Subscription that wraps a Future and cancels it when unsubscribed. |
static CompositeSubscription |
from(Subscription... subscriptions)
A Subscription that groups multiple Subscriptions together and unsubscribes from all of them together. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Subscriptions()
| Method Detail |
|---|
public static Subscription empty()
Subscription that does nothing.
Subscriptionpublic static Subscription create(Action0 unsubscribe)
Subscription which invokes the given Action0 when unsubscribed.
unsubscribe - Action to invoke on unsubscribe.
Subscriptionpublic static Subscription from(java.util.concurrent.Future<?> f)
Subscription that wraps a Future and cancels it when unsubscribed.
f - Future
Subscriptionpublic static Subscription create(java.util.concurrent.Future<?> f)
Subscriptions.from(Future) instead
Subscription that wraps a Future and cancels it when unsubscribed.
f - Future
Subscriptionpublic static CompositeSubscription from(Subscription... subscriptions)
Subscription that groups multiple Subscriptions together and unsubscribes from all of them together.
subscriptions - Subscriptions to group together
Subscriptionpublic static CompositeSubscription create(Subscription... subscriptions)
Subscriptions.from(Subscription...) instead
Subscription that groups multiple Subscriptions together and unsubscribes from all of them together.
subscriptions - Subscriptions to group together
Subscription
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||