| Constructor and Description |
|---|
HierarchicalWheelTimer(java.lang.String executorName)
Instantiates a new System timer.
|
HierarchicalWheelTimer(java.lang.String executorName,
java.lang.Long tickMs,
java.lang.Integer wheelSize,
java.lang.Long startMs)
Instantiates a new System timer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(TimerTask timerTask)
Add timer task.
|
void |
advanceClock(long timeoutMs)
Advance clock boolean.
|
void |
shutdown()
Shutdown.
|
int |
size()
Size int.
|
public HierarchicalWheelTimer(java.lang.String executorName)
executorName - the executor namepublic HierarchicalWheelTimer(java.lang.String executorName,
java.lang.Long tickMs,
java.lang.Integer wheelSize,
java.lang.Long startMs)
executorName - the executor nametickMs - the tick mswheelSize - the wheel sizestartMs - the start mspublic void advanceClock(long timeoutMs)
throws java.lang.InterruptedException
TimeradvanceClock in interface TimertimeoutMs - the timeout msjava.lang.InterruptedException - the interrupted exceptionpublic int size()
TimerCopyright © 2024 The Apache Software Foundation. All rights reserved.