Package io.vertx.config
Class ConfigChange
- java.lang.Object
- 
- io.vertx.config.ConfigChange
 
- 
 public class ConfigChange extends Object A structure representing a configuration change.- Author:
- Clement Escoffier
 
- 
- 
Constructor SummaryConstructors Constructor Description ConfigChange()Creates a new instance fromConfigChangeusing empty JSON Object for both the old and new configuration.ConfigChange(ConfigChange other)Creates a new instance ofConfigChangecopying the values stored in the given object.ConfigChange(JsonObject json)Creates a newConfigChangeinstance from the given JSON object.ConfigChange(JsonObject prevConf, JsonObject newConf)Creates a newConfigChangeinstance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonObjectgetNewConfiguration()JsonObjectgetPreviousConfiguration()ConfigChangesetNewConfiguration(JsonObject conf)Sets the new configuration.ConfigChangesetPreviousConfiguration(JsonObject conf)Sets the previous configuration.JsonObjecttoJson()
 
- 
- 
- 
Constructor Detail- 
ConfigChangepublic ConfigChange(JsonObject prevConf, JsonObject newConf) Creates a newConfigChangeinstance.- Parameters:
- prevConf- the previous configuration, may be- null. In this case, an empty JSON object is used.
- newConf- the new configuration, may be- null. In this case, an empty JSON object is used.
 
 - 
ConfigChangepublic ConfigChange() Creates a new instance fromConfigChangeusing empty JSON Object for both the old and new configuration.
 - 
ConfigChangepublic ConfigChange(ConfigChange other) Creates a new instance ofConfigChangecopying the values stored in the given object.- Parameters:
- other- the instance to copy
 
 - 
ConfigChangepublic ConfigChange(JsonObject json) Creates a newConfigChangeinstance from the given JSON object.- Parameters:
- json- the json object, must not be- null
 
 
- 
 - 
Method Detail- 
getPreviousConfigurationpublic JsonObject getPreviousConfiguration() - Returns:
- the previous configuration, never null, but potentially empty
 
 - 
setPreviousConfigurationpublic ConfigChange setPreviousConfiguration(JsonObject conf) Sets the previous configuration.- Parameters:
- conf- the configuration, may be- null. In this case an empty JSON object is used.
- Returns:
- the current instance of ConfigChange
 
 - 
getNewConfigurationpublic JsonObject getNewConfiguration() - Returns:
- the new configuration, never null, but potentially empty.
 
 - 
setNewConfigurationpublic ConfigChange setNewConfiguration(JsonObject conf) Sets the new configuration.- Parameters:
- conf- the new configuration, may be- null. In this case, an empty JSON object is used.
- Returns:
- the current instance of ConfigChange
 
 - 
toJsonpublic JsonObject toJson() - Returns:
- the JSON representation of the current ConfigChangeinstance.
 
 
- 
 
-