public class ConfigRetrieverOptions extends Object
ConfigRetriever
.Constructor and Description |
---|
ConfigRetrieverOptions() |
ConfigRetrieverOptions(ConfigRetrieverOptions other) |
ConfigRetrieverOptions(JsonObject json) |
Modifier and Type | Method and Description |
---|---|
ConfigRetrieverOptions |
addStore(ConfigStoreOptions options)
Adds a store to the list of stores.
|
long |
getScanPeriod() |
List<ConfigStoreOptions> |
getStores() |
boolean |
isIncludeDefaultStores() |
ConfigRetrieverOptions |
setIncludeDefaultStores(boolean includeDefaultStores)
Enables or disables the inclusion of the default stored in the configuration.
|
ConfigRetrieverOptions |
setScanPeriod(long scanPeriod)
Configures the scan period, in ms.
|
ConfigRetrieverOptions |
setStores(List<ConfigStoreOptions> stores)
Sets the configuration stores.
|
JsonObject |
toJson() |
public ConfigRetrieverOptions()
public ConfigRetrieverOptions(ConfigRetrieverOptions other)
public ConfigRetrieverOptions(JsonObject json)
public JsonObject toJson()
public boolean isIncludeDefaultStores()
public ConfigRetrieverOptions setIncludeDefaultStores(boolean includeDefaultStores)
includeDefaultStores
- true
to include the default stores.ConfigStoreOptions
public long getScanPeriod()
public ConfigRetrieverOptions setScanPeriod(long scanPeriod)
scanPeriod
- the scan period in msConfigStoreOptions
public List<ConfigStoreOptions> getStores()
public ConfigRetrieverOptions setStores(List<ConfigStoreOptions> stores)
stores
- the list of stores.ConfigStoreOptions
public ConfigRetrieverOptions addStore(ConfigStoreOptions options)
options
- the store configurationConfigStoreOptions
Copyright © 2023 Eclipse. All rights reserved.