public static class Schedulers.SchedulerService extends AbstractLifeCycle implements Scheduler
Scheduler.Futurestart| 构造器和说明 |
|---|
SchedulerService(ScheduledExecutorService service) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
destroy() |
protected void |
init() |
Scheduler.Future |
schedule(Runnable task,
long delay,
TimeUnit unit) |
Scheduler.Future |
scheduleAtFixedRate(Runnable task,
long initialDelay,
long period,
TimeUnit unit) |
Scheduler.Future |
scheduleWithFixedDelay(Runnable task,
long initialDelay,
long delay,
TimeUnit unit) |
isStarted, isStopped, start, stoppublic SchedulerService(ScheduledExecutorService service)
public Scheduler.Future schedule(Runnable task, long delay, TimeUnit unit)
public Scheduler.Future scheduleWithFixedDelay(Runnable task, long initialDelay, long delay, TimeUnit unit)
scheduleWithFixedDelay 在接口中 Schedulerpublic Scheduler.Future scheduleAtFixedRate(Runnable task, long initialDelay, long period, TimeUnit unit)
scheduleAtFixedRate 在接口中 Schedulerprotected void init()
init 在类中 AbstractLifeCycleprotected void destroy()
destroy 在类中 AbstractLifeCycleCopyright © 2016. All rights reserved.