public interface Reconfigurable extends Configurable
Modifier and Type | Method and Description |
---|---|
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.
|
configure
Set<String> reconfigurableConfigs()
void validateReconfiguration(Map<String,?> configs) throws ConfigException
ConfigException
- if the provided configs are not valid. The exception
message from ConfigException will be returned to the client in
the AlterConfigs response.void reconfigure(Map<String,?> configs)
Configurable.configure(Map)
. This method will only be invoked if
the configs have passed validation using validateReconfiguration(Map)
.