C# Class Elders.Hystrix.NET.Util.HystrixTimer

Provides timers to repeatedly call ITimerListener implementations.
Show file Open project: Elders/Hystrix.NET

Public Properties

Property Type Description
Instance HystrixTimer

Public Methods

Method Description
AddTimerListener ( ITimerListener listener ) : TimerReference

Add a ITimerListener that will be executed until it is garbage collected or removed by clearing the returned TimerReference. NOTE: It is the responsibility of code that adds a listener via this method to clear this listener when completed.

Private Methods

Method Description
HystrixTimer ( ) : Logging

Prevents a default instance of the HystrixTimer class from being created.

Method Details

AddTimerListener() public method

Add a ITimerListener that will be executed until it is garbage collected or removed by clearing the returned TimerReference. NOTE: It is the responsibility of code that adds a listener via this method to clear this listener when completed.
public AddTimerListener ( ITimerListener listener ) : TimerReference
listener ITimerListener ITimerListener implementation that will be triggered according to its method implementation.
return TimerReference

Property Details

Instance public static property

The singleton instance of this type.
public static HystrixTimer,Elders.Hystrix.NET.Util Instance
return HystrixTimer