public class ConfigurationWithSessionCache extends AbstractConfigurationImpl implements SessionServiceWithCache
| Constructor and Description |
|---|
ConfigurationWithSessionCache(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
flushCache()
Method to flush the cache after invoking this method.
|
Configuration |
getCurrentConfig() |
String |
getProperty(String key,
String defaultValue)
Gets the property by Key.
|
boolean |
hasProperty(String key)
Checks for property.
|
void |
invalidate()
Method to invalidate all the cached configuration.
|
boolean |
isReloading() |
void |
reload()
Method to reload the configuration modules.
|
void |
setProperty(String key,
String value)
Method to override a property at runtime.
|
containsKey, getBooleanProperty, getDurationProperty, getIntegerProperty, getLongProperty, getMatchingProperties, getProperty, getURLProperty, hasDurationProperty, hasMatchingProperty, hasMatchingPropertypublic ConfigurationWithSessionCache(Configuration configuration)
public String getProperty(String key, String defaultValue)
ConfigurationgetProperty in interface Configurationkey - the keydefaultValue - the default valuepublic void setProperty(String key, String value)
ConfigurationsetProperty in interface Configurationkey - the keyvalue - the valuepublic boolean hasProperty(String key)
ConfigurationhasProperty in interface Configurationkey - the keypublic Configuration getCurrentConfig() throws TechnicalConnectorException
getCurrentConfig in interface ConfigurationTechnicalConnectorExceptionpublic void invalidate()
throws TechnicalConnectorException
Configurationinvalidate in interface ConfigurationTechnicalConnectorExceptionpublic void reload()
throws TechnicalConnectorException
ConfigurationThis method must be called when you change properties at runtime that are used by configuration modules.
reload in interface ConfigurationTechnicalConnectorExceptionpublic boolean isReloading()
isReloading in interface Configurationpublic void flushCache()
SessionServiceWithCacheflushCache in interface SessionServiceWithCache
Connector Packaging generic 4.3.0 API
Copyright © {inceptionYear}-2023 eHealth. All Rights Reserved.