@Deprecated public class FileConfiguration extends AbstractConfiguration
DEFAULT_BOOLEAN, DEFAULT_CONFIG_TIMEOUT, DEFAULT_DURATION, DEFAULT_INT, DEFAULT_LONG, DEFAULT_SHORTENV_MAP| Constructor and Description |
|---|
FileConfiguration()
Deprecated.
Instantiates a new File configuration.
|
FileConfiguration(Configuration target)
Deprecated.
Instantiates a new File configuration.
|
FileConfiguration(String name)
Deprecated.
Instantiates a new File configuration.
|
FileConfiguration(String name,
boolean allowDynamicRefresh)
Deprecated.
Instantiates a new File configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigListener(String dataId,
ConfigurationChangeListener listener)
Deprecated.
Add config listener.
|
Set<ConfigurationChangeListener> |
getConfigListeners(String dataId)
Deprecated.
Gets config listeners.
|
String |
getLatestConfig(String dataId,
String defaultValue,
long timeoutMills)
Deprecated.
Get latest config.
|
String |
getTypeName()
Deprecated.
Gets type name.
|
boolean |
putConfig(String dataId,
String content,
long timeoutMills)
Deprecated.
Put config boolean.
|
boolean |
putConfigIfAbsent(String dataId,
String content,
long timeoutMills)
Deprecated.
Put config if absent boolean.
|
boolean |
removeConfig(String dataId,
long timeoutMills)
Deprecated.
Remove config boolean.
|
void |
removeConfigListener(String dataId,
ConfigurationChangeListener listener)
Deprecated.
Remove config listener.
|
getBoolean, getBoolean, getBoolean, getConfig, getConfig, getConfig, getConfig, getDuration, getDuration, getDuration, getInt, getInt, getInt, getLong, getLong, getLong, getShort, getShort, getShort, putConfig, putConfigIfAbsent, removeConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigFromSyspublic FileConfiguration()
public FileConfiguration(Configuration target)
target - the targetpublic FileConfiguration(String name)
name - the namepublic FileConfiguration(String name, boolean allowDynamicRefresh)
name - the nameallowDynamicRefresh - the allow dynamic refreshpublic String getTypeName()
AbstractConfigurationgetTypeName in class AbstractConfigurationpublic boolean putConfig(String dataId, String content, long timeoutMills)
ConfigurationdataId - the data idcontent - the contenttimeoutMills - the timeout millspublic String getLatestConfig(String dataId, String defaultValue, long timeoutMills)
ConfigurationdataId - the data iddefaultValue - the default valuetimeoutMills - the timeout millspublic boolean putConfigIfAbsent(String dataId, String content, long timeoutMills)
ConfigurationdataId - the data idcontent - the contenttimeoutMills - the timeout millspublic boolean removeConfig(String dataId, long timeoutMills)
ConfigurationdataId - the data idtimeoutMills - the timeout millspublic void addConfigListener(String dataId, ConfigurationChangeListener listener)
ConfigurationdataId - the data idlistener - the listenerpublic void removeConfigListener(String dataId, ConfigurationChangeListener listener)
ConfigurationdataId - the data idlistener - the listenerpublic Set<ConfigurationChangeListener> getConfigListeners(String dataId)
ConfigurationdataId - the data idCopyright © 2025 Apache. All rights reserved.