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()
Reconfigurable
reconfigurableConfigs
in interface Reconfigurable
public void validateReconfiguration(Map<String,?> configs) throws ConfigException
Reconfigurable
validateReconfiguration
in interface Reconfigurable
ConfigException
- 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)
Reconfigurable
Configurable.configure(Map)
. This method will only be invoked if
the configs have passed validation using Reconfigurable.validateReconfiguration(Map)
.reconfigure
in interface Reconfigurable
public void configure(Map<String,?> configs)
Configurable
configure
in interface Configurable