public sealed class SharedTimer : IDisposable,
IProvideStatus
Public NotInheritable Class SharedTimer
Implements IDisposable, IProvideStatus
public ref class SharedTimer sealed : IDisposable,
IProvideStatus
Gemstone.Threading.SharedTimer = function();
Type.createClass(
'Gemstone.Threading.SharedTimer',
null,
IDisposable,
IProvideStatus);
Externally the SharedTimer operations similar to the Timer. Internally the timer pools callbacks with the same Interval into a single timer where each callback is executed on the same thread, per instance of the SharedTimerScheduler.
Any long running callbacks that have a risk of long delays should not use SharedTimer as this will effect the reliability of all of the other SharedTimer instances for a given SharedTimerScheduler.
AutoReset | Gets or sets flag that indicates whether the SharedTimer should raise the Elapsed event only once false or repeatedly true. |
Enabled | Gets or sets flag that indicates whether the SharedTimer should raise the Elapsed event. |
Interval | Gets or sets the interval at which to raise the Elapsed event. |
Status | Gets the current status details about object providing status information. |
Close | Stops the timer. |
Dispose | Stops the timer and prevents reuse of the class. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
Start | Starts raising the Elapsed event by setting Enabled to true. |
Stop | Stops raising the Elapsed event by setting Enabled to false. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Elapsed | Occurs when the timer interval elapses. |