/** * Configures an expiry-time cache of the given maximum age in seconds and purge interval in seconds. Also allows * setting the reference type indicating whether garbage collection may remove entries from cache. * @param maxAgeSeconds is the maximum number of seconds before a query result is considered stale (also known as time-to-live) * @param purgeIntervalSeconds is the interval at which the engine purges stale data from the cache * @param cacheReferenceType specifies the reference type to use */ public void setExpiryTimeCache(double maxAgeSeconds, double purgeIntervalSeconds, ConfigurationCacheReferenceType cacheReferenceType) { dataCacheDesc = new ConfigurationExpiryTimeCache(maxAgeSeconds, purgeIntervalSeconds, cacheReferenceType); }
/** * Configures an expiry-time cache of the given maximum age in seconds and purge interval in seconds. Also allows * setting the reference type indicating whether garbage collection may remove entries from cache. * @param maxAgeSeconds is the maximum number of seconds before a method invocation result is considered stale (also known as time-to-live) * @param purgeIntervalSeconds is the interval at which the engine purges stale data from the cache * @param cacheReferenceType specifies the reference type to use */ public void setExpiryTimeCache(double maxAgeSeconds, double purgeIntervalSeconds, ConfigurationCacheReferenceType cacheReferenceType) { dataCacheDesc = new ConfigurationExpiryTimeCache(maxAgeSeconds, purgeIntervalSeconds, cacheReferenceType); }
/** * Configures an expiry-time cache of the given maximum age in seconds and purge interval in seconds. * <p> * 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. * @param maxAgeSeconds is the maximum number of seconds before a query result is considered stale (also known as time-to-live) * @param purgeIntervalSeconds is the interval at which the engine purges stale data from the cache */ public void setExpiryTimeCache(double maxAgeSeconds, double purgeIntervalSeconds) { dataCacheDesc = new ConfigurationExpiryTimeCache(maxAgeSeconds, purgeIntervalSeconds, ConfigurationCacheReferenceType.getDefault()); }
/** * Configures an expiry-time cache of the given maximum age in seconds and purge interval in seconds. * <p> * 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. * @param maxAgeSeconds is the maximum number of seconds before a method invocation result is considered stale (also known as time-to-live) * @param purgeIntervalSeconds is the interval at which the engine purges stale data from the cache */ public void setExpiryTimeCache(double maxAgeSeconds, double purgeIntervalSeconds) { dataCacheDesc = new ConfigurationExpiryTimeCache(maxAgeSeconds, purgeIntervalSeconds, ConfigurationCacheReferenceType.getDefault()); }