public final class DelegatingReconfigurable extends java.lang.Object implements Reconfigurable
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
DelegatingReconfigurable(java.util.function.Supplier<?> supplier) |
Modifier and Type | Method and Description |
---|---|
void |
configure(java.util.Map<java.lang.String,?> configs)
Configure this class with the given key-value pairs
|
java.util.Set<java.lang.String> |
reconfigurableConfigs()
Returns the names of configs that may be reconfigured.
|
void |
reconfigure(java.util.Map<java.lang.String,?> configs)
Reconfigures this instance with the given key-value pairs.
|
void |
validateReconfiguration(java.util.Map<java.lang.String,?> configs)
Validates the provided configuration.
|
public DelegatingReconfigurable(java.util.function.Supplier<?> supplier)
public java.util.Set<java.lang.String> reconfigurableConfigs()
Reconfigurable
reconfigurableConfigs
in interface Reconfigurable
public void validateReconfiguration(java.util.Map<java.lang.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(java.util.Map<java.lang.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(java.util.Map<java.lang.String,?> configs)
Configurable
configure
in interface Configurable