Interface RemoteConfigurationSource
- All Known Implementing Classes:
FileRemoteConfigSource, HttpRemoteConfigurationSource, KubernetesRemoteConfigurationSource, PollingRemoteConfigurationSource
public interface RemoteConfigurationSource
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapperconfigureMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) io.confluent.telemetry.config.v2.remote.RemoteConfigurationReturns the latest received configuration from this source.voidsetConfigurationChangeCallback(Consumer<io.confluent.telemetry.config.v2.remote.RemoteConfiguration> callback) Registers a callback to be called when the remote configuration has changeddefault voidstart()default voidstop()
-
Method Details
-
configureMapper
static com.fasterxml.jackson.databind.ObjectMapper configureMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) -
getConfig
io.confluent.telemetry.config.v2.remote.RemoteConfiguration getConfig()Returns the latest received configuration from this source. -
setConfigurationChangeCallback
void setConfigurationChangeCallback(Consumer<io.confluent.telemetry.config.v2.remote.RemoteConfiguration> callback) Registers a callback to be called when the remote configuration has changed -
start
default void start() -
stop
default void stop()
-