|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrx.concurrency.NewThreadScheduler
public class NewThreadScheduler
Schedules work on a new thread.
| Constructor Summary | |
|---|---|
NewThreadScheduler()
|
|
| Method Summary | |
|---|---|
static NewThreadScheduler |
getInstance()
|
long |
now()
Returns the scheduler's notion of current time. |
Subscription |
schedule(Action0 action)
Schedules an action to be executed. |
Subscription |
schedule(Action0 action,
long dueTime,
java.util.concurrent.TimeUnit unit)
Schedules an action to be executed in dueTime. |
Subscription |
schedule(Func0<Subscription> action)
Schedules a cancelable action to be executed. |
Subscription |
schedule(Func0<Subscription> action,
long dueTime,
java.util.concurrent.TimeUnit unit)
Schedules a cancelable action to be executed in dueTime. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewThreadScheduler()
| Method Detail |
|---|
public static NewThreadScheduler getInstance()
public Subscription schedule(Func0<Subscription> action)
Scheduler
action - action
public Subscription schedule(Func0<Subscription> action,
long dueTime,
java.util.concurrent.TimeUnit unit)
Scheduler
action - action
public Subscription schedule(Action0 action)
Scheduler
schedule in interface Scheduleraction - action
public Subscription schedule(Action0 action,
long dueTime,
java.util.concurrent.TimeUnit unit)
Scheduler
schedule in interface Scheduleraction - action
public long now()
Scheduler
now in interface Scheduler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||