| 接口 | 说明 |
|---|---|
| RaftTimerFactory | |
| Timeout | |
| Timer |
Schedules
TimerTasks for one-time future execution in a background
thread. |
| TimerTask |
A task which is executed after the delay specified with
Timer#newTimeout(TimerTask, long, TimeUnit).
|
| 类 | 说明 |
|---|---|
| DefaultRaftTimerFactory | |
| DefaultTimer | |
| HashedWheelTimer |
Implementation Details
HashedWheelTimer is based on
George Varghese and
Tony Lauck's paper,
'Hashed
and Hierarchical Timing Wheels: data structures to efficiently implement a
timer facility'. |
Copyright © 2021. All rights reserved.