public class ConfigurationCommonCacheExpiryTime extends Object implements ConfigurationCommonCache, Serializable
Constructor and Description |
---|
ConfigurationCommonCacheExpiryTime(double maxAgeSeconds,
double purgeIntervalSeconds,
CacheReferenceType cacheReferenceType)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
CacheReferenceType |
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 ConfigurationCommonCacheExpiryTime(double maxAgeSeconds, double purgeIntervalSeconds, CacheReferenceType 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 CacheReferenceType getCacheReferenceType()
Copyright © 2005–2019. All rights reserved.