TimerItem Members
Include Protected Members
Include Inherited Members
Defines a timer item to set up a timer. When the timer expires, a supplied callback is called. The timer item needs access to a TimerWheel in which the timer item is managed.
The TimerItem type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TimerItem | Initializes a new instance of the TimerItem class. |
Top
Properties
Name | Description | |
---|---|---|
IsStarted | Gets the current timer item status. | |
RemainingTime | Gets the remaining time span for TimerItem before the TimerItem expires. | |
TimerSpan | Gets the timer span value. | |
Wheel | Gets the timer wheel. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (inherited from Object) | |
Finalize | (inherited from Object) | |
GetHashCode | (inherited from Object) | |
GetType | (inherited from Object) | |
MemberwiseClone | (inherited from Object) | |
Reset() | Resets the timer by rescheduling the item for a period of time equal to the original timer span. | |
Reset(TimeSpan) | Resets the timer by rescheduling the item for the new period of time specified. | |
Start | Enables the timer item by setting the expiry time and adding the item to the queue. | |
Stop | Disables the timer by removing the item from the timer queue and by resetting the expiry time. | |
ToString | (inherited from Object) |
Top
Events
Name | Description | |
---|---|---|
Expired | Raised when the item expires. |
Top