Class ConfigRetrieverOptions
java.lang.Object
io.vertx.config.ConfigRetrieverOptions
Options to configure the
ConfigRetriever.- Author:
- Clement Escoffier
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionaddStore(ConfigStoreOptions options) Adds a store to the list of stores.longbooleansetIncludeDefaultStores(boolean includeDefaultStores) Enables or disables the inclusion of the default stored in the configuration.setScanPeriod(long scanPeriod) Configures the scan period, in ms.setStores(List<ConfigStoreOptions> stores) Sets the configuration stores.toJson()
-
Constructor Details
-
ConfigRetrieverOptions
public ConfigRetrieverOptions() -
ConfigRetrieverOptions
-
ConfigRetrieverOptions
-
-
Method Details
-
toJson
-
isIncludeDefaultStores
public boolean isIncludeDefaultStores()- Returns:
- whether or not the default stored are included in the configuration.
-
setIncludeDefaultStores
Enables or disables the inclusion of the default stored in the configuration.- Parameters:
includeDefaultStores-trueto include the default stores.- Returns:
- the current
ConfigStoreOptions
-
getScanPeriod
public long getScanPeriod()- Returns:
- the scan period in ms.
-
setScanPeriod
Configures the scan period, in ms. This is the time amount between two checks of the configuration updates.- Parameters:
scanPeriod- the scan period in ms- Returns:
- the current
ConfigStoreOptions
-
getStores
- Returns:
- the current list of stores.
-
setStores
Sets the configuration stores.- Parameters:
stores- the list of stores.- Returns:
- the current
ConfigStoreOptions
-
addStore
Adds a store to the list of stores.- Parameters:
options- the store configuration- Returns:
- the current
ConfigStoreOptions
-