public class ConfigurationExpiryTimeCache extends Object implements ConfigurationDataCache, Serializable
Constructor and Description |
---|
ConfigurationExpiryTimeCache(double maxAgeSeconds,
double purgeIntervalSeconds,
ConfigurationCacheReferenceType cacheReferenceType)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
ConfigurationCacheReferenceType |
getCacheReferenceType()
Returns the enumeration whether hard, soft or weak reference type are used
to control whether the garbage collection can remove entries from cache.
|
double |
getMaxAgeSeconds()
Returns the maximum age in seconds.
|
double |
getPurgeIntervalSeconds()
Returns the purge interval length.
|
String |
toString() |
public ConfigurationExpiryTimeCache(double maxAgeSeconds, double purgeIntervalSeconds, ConfigurationCacheReferenceType cacheReferenceType)
maxAgeSeconds
- is the maximum age in secondspurgeIntervalSeconds
- is the purge intervalcacheReferenceType
- the reference type may allow garbage collection to remove entries from
cache unless HARD reference type indicates otherwisepublic double getMaxAgeSeconds()
public double getPurgeIntervalSeconds()
public ConfigurationCacheReferenceType getCacheReferenceType()