public final class DelegatingReconfigurable extends Object implements Reconfigurable
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger | log |
| Constructor and Description |
|---|
DelegatingReconfigurable(Supplier<?> supplier) |
| Modifier and Type | Method and Description |
|---|---|
void | configure(Map<String,?> configs)Configure this class with the given key-value pairs |
Set<String> | reconfigurableConfigs()Returns the names of configs that may be reconfigured. |
void | reconfigure(Map<String,?> configs)Reconfigures this instance with the given key-value pairs. |
void | validateReconfiguration(Map<String,?> configs)Validates the provided configuration. |
public DelegatingReconfigurable(Supplier<?> supplier)
public Set<String> reconfigurableConfigs()
ReconfigurablereconfigurableConfigs in interface Reconfigurablepublic void validateReconfiguration(Map<String,?> configs) throws ConfigException
ReconfigurablevalidateReconfiguration in interface ReconfigurableConfigException - if the provided configs are not valid. The exception message from ConfigException will be returned to the client in the AlterConfigs response.public void reconfigure(Map<String,?> configs)
ReconfigurableConfigurable.configure(Map). This method will only be invoked if the configs have passed validation using Reconfigurable.validateReconfiguration(Map).reconfigure in interface Reconfigurablepublic void configure(Map<String,?> configs)
Configurableconfigure in interface Configurable