public abstract static class Scheduler.Worker extends java.lang.Object implements Subscription
 Unsubscribing the Scheduler.Worker unschedules all outstanding work and allows resources cleanup.
| Constructor and Description | 
|---|
| Scheduler.Worker() | 
| Modifier and Type | Method and Description | 
|---|---|
| long | now() | 
| abstract Subscription | schedule(Action0 action)Schedules an Action for execution. | 
| abstract Subscription | schedule(Action0 action,
        long delayTime,
        java.util.concurrent.TimeUnit unit)Schedules an Action for execution at some point in the future. | 
| Subscription | schedulePeriodically(Action0 action,
                    long initialDelay,
                    long period,
                    java.util.concurrent.TimeUnit unit)Schedules a cancelable action to be executed periodically. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisUnsubscribed, unsubscribepublic abstract Subscription schedule(Action0 action)
action - Action to schedulepublic abstract Subscription schedule(Action0 action, long delayTime, java.util.concurrent.TimeUnit unit)
action - the Action to scheduledelayTime - time to wait before executing the actionunit - the time unit the delay time is given inpublic Subscription schedulePeriodically(Action0 action, long initialDelay, long period, java.util.concurrent.TimeUnit unit)
action - the Action to execute periodicallyinitialDelay - time to wait before executing the action for the first timeperiod - the time interval to wait each time in between executing the actionunit - the time unit the interval above is given inpublic long now()