Creates a cached configuration reader.
Inherits: IReconfigurable, IConfigReader
Description
The CachedConfigReader class allows you to create a cached configuration reader.
Properties
Timeout
Timedout (Default value is 60000)
privatelong _timeout = 60000
Instance methods
getTimeout
Gets the timeout.
publiclong getTimeout()
- returns: long - timeout.
setTimeout
Gets the timeout.
publicvoid setTimeout(long value)
- value: long - timeout.
configure
Gets the timeout.
publicvoid configure(ConfigParams config)
- config ConfigParams - configuration params.
performReadConfig
protected abstractConfigParams performReadConfig(IContext context, ConfigParams parameters) throws ApplicationException
- context: IContext - (optional) a context to trace execution through a call chain.
- config: ConfigParams - configuration params.
readConfig
publicConfigParams readConfig(IContext context, ConfigParams parameters) throws ApplicationException
- context: IContext - (optional) a context to trace execution through a call chain.
- returns ConfigParams - configuration params.
readConfigSection
Reads a configuration section.
publicConfigParams readConfigSection(IContext context, ConfigParams parameters, String section) throws ApplicationException
- context: IContext - (optional) a context to trace execution through a call chain.
- returns ConfigParams - configuration params.