TimingWheel

Timing Wheel manger Class

Constructors

this
this(uint wheelSize)

constructor

Members

Functions

addNewTimer
void addNewTimer(WheelTimer tm, size_t wheel)

add a Timer into the Wheel

doNext
NullWheelTimer doNext()

go forward a element,and return the element.

getPrev
size_t getPrev()

get the index whitch is farthest with current index.

nextWheel
size_t nextWheel(size_t wheel)

get next wheel times 's Wheel

prevWheel
void prevWheel(uint size)

The Wheel go forward

remove
void remove(WheelTimer tm)

remove the timer.

rest
void rest(WheelTimer tm, size_t next)

rest a timer.

Meta