public class ConfigurationMethodRef extends Object implements Serializable
Constructor and Description |
---|
ConfigurationMethodRef() |
Modifier and Type | Method and Description |
---|---|
ConfigurationDataCache |
getDataCacheDesc()
Return a method invocation result data cache descriptor.
|
void |
setExpiryTimeCache(double maxAgeSeconds,
double purgeIntervalSeconds)
Configures an expiry-time cache of the given maximum age in seconds and purge interval in seconds.
|
void |
setExpiryTimeCache(double maxAgeSeconds,
double purgeIntervalSeconds,
ConfigurationCacheReferenceType cacheReferenceType)
Configures an expiry-time cache of the given maximum age in seconds and purge interval in seconds.
|
void |
setLRUCache(int size)
Configures a LRU cache of the given size for the method invocation.
|
public void setLRUCache(int size)
size
- is the maximum number of entries before method invocation results are evictedpublic void setExpiryTimeCache(double maxAgeSeconds, double purgeIntervalSeconds)
Specifies the cache reference type to be weak references. Weak reference cache entries become eligible for garbage collection and are removed from cache when the garbage collection requires so.
maxAgeSeconds
- is the maximum number of seconds before a method invocation result is considered stale (also known as time-to-live)purgeIntervalSeconds
- is the interval at which the engine purges stale data from the cachepublic void setExpiryTimeCache(double maxAgeSeconds, double purgeIntervalSeconds, ConfigurationCacheReferenceType cacheReferenceType)
maxAgeSeconds
- is the maximum number of seconds before a method invocation result is considered stale (also known as time-to-live)purgeIntervalSeconds
- is the interval at which the engine purges stale data from the cachecacheReferenceType
- specifies the reference type to usepublic ConfigurationDataCache getDataCacheDesc()