CachedConfigReader

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)

private long _timeout = 60000

Instance methods

getTimeout

Gets the timeout.

public long getTimeout()

  • returns: long - timeout.

setTimeout

Gets the timeout.

public void setTimeout(long value)

  • value: long - timeout.

configure

Gets the timeout.

public void configure(ConfigParams config)

performReadConfig

protected abstract ConfigParams performReadConfig(IContext context, ConfigParams parameters) throws ApplicationException

  • context: IContext - (optional) a context to trace execution through a call chain.
  • config: ConfigParams - configuration params.

readConfig

public ConfigParams 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.

public ConfigParams 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.