TimingWheel

Timing Wheel manger Class

Constructors

this
this(uint wheelSize)

constructor

Members

Functions

Remove
void Remove(WheelTimer tm)

Remove the timer.

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

rest
void rest(WheelTimer tm, size_t next)

rest a timer.

Meta