Add option to reload configuration periodically

Description

TypeSafeDriverConfig.reload(Config) is implemented, but currently never called.

Add configuration options to schedule a periodic task that reloads the configuration from an external source (this should be scheduled on adminEventExecutorGroup).

Care must be taken not to leak Config through the public API, since TypeSafe Config is an implementation detail.

Tentative API:

And then replace ClusterBuilder#withConfig(DriverConfig) by ClusterBuilder#withConfigLoader(DriverConfigLoader).

Environment

None

Pull Requests

None
Fixed

Assignee

Olivier Michallat

Reporter

Olivier Michallat

Labels

None

PM Priority

None

Affects versions

None

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Major
Configure