public class HashTimeWheel extends AbstractLifeCycle
| 限定符和类型 | 类和说明 |
|---|---|
static class |
HashTimeWheel.Future |
start| 构造器和说明 |
|---|
HashTimeWheel() |
| 限定符和类型 | 方法和说明 |
|---|---|
HashTimeWheel.Future |
add(long delay,
Runnable run)
add a task
|
protected void |
destroy() |
long |
getInterval() |
int |
getMaxTimers() |
protected void |
init() |
void |
setInterval(long interval) |
void |
setMaxTimers(int maxTimers) |
isStarted, isStopped, start, stoppublic int getMaxTimers()
public void setMaxTimers(int maxTimers)
public long getInterval()
public void setInterval(long interval)
public HashTimeWheel.Future add(long delay, Runnable run)
delay - after x milliseconds than execute runnablerun - run task in futureprotected void init()
init 在类中 AbstractLifeCycleprotected void destroy()
destroy 在类中 AbstractLifeCycleCopyright © 2016. All rights reserved.