Class ConfigChange
java.lang.Object
io.vertx.config.ConfigChange
A structure representing a configuration change.
- Author:
- Clement Escoffier
-
Constructor Summary
ConstructorsConstructorDescriptionCreates 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 Summary
Modifier and TypeMethodDescriptionSets the new configuration.Sets the previous configuration.toJson()
-
Constructor Details
-
ConfigChange
Creates a newConfigChangeinstance.- Parameters:
prevConf- the previous configuration, may benull. In this case, an empty JSON object is used.newConf- the new configuration, may benull. In this case, an empty JSON object is used.
-
ConfigChange
public ConfigChange()Creates a new instance fromConfigChangeusing empty JSON Object for both the old and new configuration. -
ConfigChange
Creates a new instance ofConfigChangecopying the values stored in the given object.- Parameters:
other- the instance to copy
-
ConfigChange
Creates a newConfigChangeinstance from the given JSON object.- Parameters:
json- the json object, must not benull
-
-
Method Details
-
getPreviousConfiguration
- Returns:
- the previous configuration, never
null, but potentially empty
-
setPreviousConfiguration
Sets the previous configuration.- Parameters:
conf- the configuration, may benull. In this case an empty JSON object is used.- Returns:
- the current instance of
ConfigChange
-
getNewConfiguration
- Returns:
- the new configuration, never
null, but potentially empty.
-
setNewConfiguration
Sets the new configuration.- Parameters:
conf- the new configuration, may benull. In this case, an empty JSON object is used.- Returns:
- the current instance of
ConfigChange
-
toJson
- Returns:
- the JSON representation of the current
ConfigChangeinstance.
-