public interface Reconfigurable
RaftProperties in runtime.| 限定符和类型 | 方法和说明 |
|---|---|
RaftProperties |
getProperties() |
Collection<String> |
getReconfigurableProperties() |
default boolean |
isPropertyReconfigurable(String property)
Is the given property reconfigurable at runtime?
|
String |
reconfigureProperty(String property,
String newValue)
Change a property on this object to the new value specified.
|
RaftProperties getProperties()
RaftProperties to be reconfigured.String reconfigureProperty(String property, String newValue) throws ReconfigurationException
This method must apply the change to all internal data structures derived
from the configuration property that is being changed.
If this object owns other Reconfigurable objects,
it must call this method recursively in order to update all these objects.
property - the name of the given property.newValue - the new value.ReconfigurationException - if the property is not reconfigurable or there is an error applying the new value.default boolean isPropertyReconfigurable(String property)
property - the name of the given property.Collection<String> getReconfigurableProperties()
Copyright © 2017–2023 The Apache Software Foundation. All rights reserved.