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, hasMatchingProperty
public ConfigurationWithSessionCache(Configuration configuration)
public String getProperty(String key, String defaultValue)
Configuration
getProperty
in interface Configuration
key
- the keydefaultValue
- the default valuepublic void setProperty(String key, String value)
Configuration
setProperty
in interface Configuration
key
- the keyvalue
- the valuepublic boolean hasProperty(String key)
Configuration
hasProperty
in interface Configuration
key
- the keypublic Configuration getCurrentConfig() throws TechnicalConnectorException
getCurrentConfig
in interface Configuration
TechnicalConnectorException
public void invalidate() throws TechnicalConnectorException
Configuration
invalidate
in interface Configuration
TechnicalConnectorException
public void reload() throws TechnicalConnectorException
Configuration
This method must be called when you change properties at runtime that are used by configuration modules.
reload
in interface Configuration
TechnicalConnectorException
public boolean isReloading()
isReloading
in interface Configuration
public void flushCache()
SessionServiceWithCache
flushCache
in interface SessionServiceWithCache
Connector Packaging TECHNICAL 4.4.0 API
Copyright © {inceptionYear}-2023 eHealth. All Rights Reserved.