| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final TrampolineScheduler |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static int | |
| public Scheduler. | createWorker()
Implements abstract rx. Scheduler. that represents serial execution of actions.
|
| INSTANCE | back to summary |
|---|---|
| public static final TrampolineScheduler INSTANCE | |
| TrampolineScheduler | back to summary |
|---|---|
| private TrampolineScheduler() | |
| compare | back to summary |
|---|---|
| pack-priv static int compare(int x, int y) | |
| createWorker | back to summary |
|---|---|
| public Scheduler. Implements abstract rx. Doc from rx. Retrieves or creates a new
When work is completed it should be unsubscribed using
Work on a | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final AtomicInteger | |
| private final BooleanSubscription | |
| pack-priv final PriorityBlockingQueue | |
| private final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private Subscription | |
| public boolean | isUnsubscribed()
Implements rx. Subscription is currently unsubscribed.
|
| public Subscription | schedule(Action0
Action to schedule action)Implements abstract rx. |
| public Subscription | schedule(Action0
the Action to schedule action, long time to wait before executing the action; non-positive values indicate an non-delayed
schedule delayTime, TimeUnit the time unit of unit)delayTimeImplements abstract rx. |
| public void | unsubscribe()
Implements rx. Subscriber that was registered when this Subscription
was received.
|
| counter | back to summary |
|---|---|
| pack-priv final AtomicInteger counter | |
| innerSubscription | back to summary |
|---|---|
| private final BooleanSubscription innerSubscription | |
| queue | back to summary |
|---|---|
| pack-priv final PriorityBlockingQueue<TrampolineScheduler. | |
| wip | back to summary |
|---|---|
| private final AtomicInteger wip | |
| InnerCurrentThreadScheduler | back to summary |
|---|---|
| pack-priv InnerCurrentThreadScheduler() | |
| enqueue | back to summary |
|---|---|
| private Subscription enqueue(Action0 action, long execTime) | |
| isUnsubscribed | back to summary |
|---|---|
| public boolean isUnsubscribed() Implements rx. Doc from rx. Indicates whether this
| |
| schedule | back to summary |
|---|---|
| public Subscription schedule(Action0 action) Implements abstract rx. Doc from rx. Schedules an Action for execution.
| |
| schedule | back to summary |
|---|---|
| public Subscription schedule(Action0 action, long delayTime, TimeUnit unit) Implements abstract rx. Doc from rx. Schedules an Action for execution at some point in the future.
Note to implementors: non-positive
| |
| 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 Action0 | |
| pack-priv final int | |
| pack-priv final Long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(TrampolineScheduler.
the object to be compared. thatImplements java. |
| action | back to summary |
|---|---|
| pack-priv final Action0 action | |
| count | back to summary |
|---|---|
| pack-priv final int count | |
| execTime | back to summary |
|---|---|
| pack-priv final Long execTime | |
| TimedAction | back to summary |
|---|---|
| pack-priv TimedAction(Action0 action, Long execTime, int count) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(TrampolineScheduler. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |