Runnable that executes an Action0 and can be cancelled. The analog is the
Subscriber in respect of an Observer.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | ScheduledAction.FutureCompleter
Cancels the captured future if the caller of the call method is not the same as the runner of the outer ScheduledAction to prevent unnecessary self-interrupting if the unsubscription happens from the same thread. |
| pack-priv static class | ScheduledAction.Remover
Remove a child subscription from a composite when unsubscribing. |
| pack-priv static class | ScheduledAction.Remover2
Remove a child subscription from a composite when unsubscribing. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Action0 | |
| pack-priv final SubscriptionList | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(Subscription
the Subscription to add s)Adds a general Subscription to this |
| public void | |
| public void | addParent(CompositeSubscription
the parent parent)CompositeSubscription to addAdds a parent |
| public void | addParent(SubscriptionList
the parent parent)CompositeSubscription to addAdds a parent |
| public boolean | isUnsubscribed()
Implements rx. Subscription is currently unsubscribed.
|
| public void | |
| pack-priv void | |
| public void | unsubscribe()
Implements rx. Subscriber that was registered when this Subscription
was received.
|
| action | back to summary |
|---|---|
| pack-priv final Action0 action | |
| cancel | back to summary |
|---|---|
| pack-priv final SubscriptionList cancel | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| ScheduledAction | back to summary |
|---|---|
| public ScheduledAction(Action0 action) | |
| ScheduledAction | back to summary |
|---|---|
| public ScheduledAction(Action0 action, CompositeSubscription parent) | |
| ScheduledAction | back to summary |
|---|---|
| public ScheduledAction(Action0 action, SubscriptionList parent) | |
| add | back to summary |
|---|---|
| public void add(Subscription s) Adds a general Subscription to this
| |
| add | back to summary |
|---|---|
| public void add(final Future<?> f) Adds the given Future to the unsubscription composite in order to support cancelling the underlying task in the executor framework.
| |
| addParent | back to summary |
|---|---|
| public void addParent(CompositeSubscription parent) Adds a parent
| |
| addParent | back to summary |
|---|---|
| public void addParent(SubscriptionList parent) Adds a parent
| |
| isUnsubscribed | back to summary |
|---|---|
| public boolean isUnsubscribed() Implements rx. Doc from rx. Indicates whether this
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| signalError | back to summary |
|---|---|
| pack-priv void signalError(Throwable ie) | |
| unsubscribe | back to summary |
|---|---|
| public void unsubscribe() Implements rx. Doc from rx. Stops the receipt of notifications on the
This allows deregistering an
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isUnsubscribed()
Implements rx. Subscription is currently unsubscribed.
|
| public void | unsubscribe()
Implements rx. Subscriber that was registered when this Subscription
was received.
|
| f | back to summary |
|---|---|
| private final Future<?> f | |
| FutureCompleter | back to summary |
|---|---|
| pack-priv FutureCompleter(Future<?> f) | |
| isUnsubscribed | back to summary |
|---|---|
| public boolean isUnsubscribed() Implements rx. Doc from rx. Indicates whether this
| |
| unsubscribe | back to summary |
|---|---|
| public void unsubscribe() Implements rx. Doc from rx. Stops the receipt of notifications on the
This allows deregistering an
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final CompositeSubscription | |
| pack-priv final ScheduledAction | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isUnsubscribed()
Implements rx. Subscription is currently unsubscribed.
|
| public void | unsubscribe()
Implements rx. Subscriber that was registered when this Subscription
was received.
|
| parent | back to summary |
|---|---|
| pack-priv final CompositeSubscription parent | |
| s | back to summary |
|---|---|
| pack-priv final ScheduledAction s | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| Remover | back to summary |
|---|---|
| public Remover(ScheduledAction s, CompositeSubscription parent) | |
| isUnsubscribed | back to summary |
|---|---|
| public boolean isUnsubscribed() Implements rx. Doc from rx. Indicates whether this
| |
| unsubscribe | back to summary |
|---|---|
| public void unsubscribe() Implements rx. Doc from rx. Stops the receipt of notifications on the
This allows deregistering an
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final SubscriptionList | |
| pack-priv final ScheduledAction | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isUnsubscribed()
Implements rx. Subscription is currently unsubscribed.
|
| public void | unsubscribe()
Implements rx. Subscriber that was registered when this Subscription
was received.
|
| parent | back to summary |
|---|---|
| pack-priv final SubscriptionList parent | |
| s | back to summary |
|---|---|
| pack-priv final ScheduledAction s | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| Remover2 | back to summary |
|---|---|
| public Remover2(ScheduledAction s, SubscriptionList parent) | |
| isUnsubscribed | back to summary |
|---|---|
| public boolean isUnsubscribed() Implements rx. Doc from rx. Indicates whether this
| |
| unsubscribe | back to summary |
|---|---|
| public void unsubscribe() Implements rx. Doc from rx. Stops the receipt of notifications on the
This allows deregistering an
| |