Class FileRemoteConfigSource
java.lang.Object
io.confluent.telemetry.config.remote.polling.PollingRemoteConfigurationSource
io.confluent.telemetry.config.remote.file.FileRemoteConfigSource
- All Implemented Interfaces:
RemoteConfigurationSource
A
RemoteConfigurationSource that supports reading from a local file.
This isn't currently used in production, but is useful for locally testing remote configuration functionality.
-
Constructor Summary
ConstructorsConstructorDescriptionFileRemoteConfigSource(FileRemoteConfigConfiguration config, Consumer<io.confluent.telemetry.config.v2.remote.RemoteConfiguration> callback) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetConfigurationChangeCallback(Consumer<io.confluent.telemetry.config.v2.remote.RemoteConfiguration> callback) Only one callback can be registered.Methods inherited from class io.confluent.telemetry.config.remote.polling.PollingRemoteConfigurationSource
getConfig, start, stop
-
Constructor Details
-
FileRemoteConfigSource
public FileRemoteConfigSource(FileRemoteConfigConfiguration config, Consumer<io.confluent.telemetry.config.v2.remote.RemoteConfiguration> callback)
-
-
Method Details
-
setConfigurationChangeCallback
public void setConfigurationChangeCallback(Consumer<io.confluent.telemetry.config.v2.remote.RemoteConfiguration> callback) Description copied from class:PollingRemoteConfigurationSourceOnly one callback can be registered. If a callback is already registered it'll be replaced by new provided callback- Specified by:
setConfigurationChangeCallbackin interfaceRemoteConfigurationSource- Overrides:
setConfigurationChangeCallbackin classPollingRemoteConfigurationSource
-