TimerWheel Members
Include Protected Members
Include Inherited Members
Provides support for managing a large number of timers represented by TimerItem instances. The timer wheel is optimized so that add/remove operations for timer items is constant time (O(1)).
The TimerWheel type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TimerWheel() | Initializes a new instance of the TimerWheel class with the default number of sectors (512) and sector span (1 second). | |
TimerWheel(Int32, TimeSpan) | Initializes a new instance of the TimerWheel class. |
Top
Methods
Name | Description | |
---|---|---|
Dispose() | Disposes the timerwheel. The timerwheel will no longer be useful. | |
Dispose(Boolean) | Dispose timerwheel. | |
Equals | (inherited from Object) | |
Finalize | Releases resources held by the TimerWheel object before garbage collection. (Overrides Object.Finalize().) | |
GetHashCode | (inherited from Object) | |
GetType | (inherited from Object) | |
MemberwiseClone | (inherited from Object) | |
ToString | (inherited from Object) |
Top
Fields
Name | Description | |
---|---|---|
DefaultSectorCount | The number of sectors in the timer wheel. This value should be a power of 2. | |
DefaultSectorSpan | The span for each sector. This gives the resolution for the timer wheel. | |
MaxCurrentCount | Maximum possible value for the count for a timer item. | |
MaxSectors | Maximum possible value for number of sectors. | |
MaxSpanSeconds | Maximum possible value for span seconds. |
Top