| 构造器和说明 |
|---|
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.
|
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 在接口中 TimertimeoutMs - the timeout msjava.lang.InterruptedException - the interrupted exceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.