public class LogsIngestionConfigManager extends Object
LogsIngestionConfig
that supports hot-loading and removal notifications.Constructor and Description |
---|
LogsIngestionConfigManager(java.util.function.Supplier<LogsIngestionConfig> logsIngestionConfigSupplier,
java.util.function.Consumer<MetricMatcher> removalListener) |
Modifier and Type | Method and Description |
---|---|
void |
forceConfigReload()
Forces the next call to
getConfig() to call the config supplier. |
LogsIngestionConfig |
getConfig() |
protected static final Logger logger
public LogsIngestionConfigManager(java.util.function.Supplier<LogsIngestionConfig> logsIngestionConfigSupplier, java.util.function.Consumer<MetricMatcher> removalListener) throws ConfigurationException
ConfigurationException
public LogsIngestionConfig getConfig()
public void forceConfigReload()
getConfig()
to call the config supplier.Copyright © 2017. All rights reserved.