Creates a cached configuration reader.
Inherits: IConfigurable, IReconfigurable, IConfigReader
Description
The CachedConfigReader class allows you to create a cached configuration reader.
Properties
Timeout
Timedout (Default value is 60000)
public
long Timeout{ get; set; }
Instance methods
AddChangeListener
Adds a listener that will be notified when configuration is changed
public virtual
void AddChangeListener(INotifiable listener)
- listener: INotifiable - a listener to be added.
ReadConfig
Configures a component by passing its configuration parameters.
public
ConfigParams ReadConfig(string correlationId, ConfigParams parameters)
- correlationId: string - configuration parameters to be set.
- parameters: ConfigParams - values to parameters of the configuration or null to skip parameterization.
- returns: ConfigParams - ConfigParams configuration.
RemoveChangeListener
Remove a previously added change listener.
public virtual
void RemoveChangeListener(INotifiable listener)
- listener: INotifiable - a listener to be removed.