public class ConfigurationExpiryTimeCache extends java.lang.Object implements ConfigurationDataCache, java.io.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.
|
java.lang.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()
public java.lang.String toString()
toString
in class java.lang.Object