Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buypublic interface Scheduler
| Modifier and Type | Method and Description |
|---|---|
<T> Future<T> |
callSyncMethod(Callable<T> task)
Calls a method on the main thread and returns a Future object.
|
Task |
runAsync(Runnable task)
Schedule a task to be executed asynchronously.
|
Task |
runAsync(Runnable task,
long delay)
Schedules a task to be executed asynchronously after the specified delay
is up.
|
Task |
runSync(Runnable task)
Schedule a task to be executed synchronously.
|
Task |
runSync(Runnable task,
long delay)
Schedules a task to be executed synchronously after the specified delay
is up.
|
Task |
scheduleAsync(Runnable task,
long delay,
long period)
Schedules a task to be executed asynchronously after the specified delay
is up.
|
Task |
scheduleSync(Runnable task,
long delay,
long period)
Schedules a task to be executed asynchronously after the specified delay
is up.
|
Task runSync(Runnable task)
task - the task to runTask runSync(Runnable task, long delay)
task - the task to rundelay - the delay before this task will be executed (tick units)Task runAsync(Runnable task)
task - the task to runTask runAsync(Runnable task, long delay)
task - the task to rundelay - the delay before this task will be executed (tick units)Task scheduleSync(Runnable task, long delay, long period)
task - the task to rundelay - the delay before this task will be executedperiod - the interval before subsequent executions of this taskTask scheduleAsync(Runnable task, long delay, long period)
task - the task to rundelay - the delay before this task will be executedperiod - the interval before subsequent executions of this task<T> Future<T> callSyncMethod(Callable<T> task)
T - The callable's return typetask - Task to be executed
Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buy