/** * Builder which sets whether the cache's statistics are enabled. * * @return this configuration instance * @see #setStatistics(boolean) */ @Deprecated public final CacheConfiguration statistics(boolean statistics) { setStatistics(statistics); return this; }
/** * Builder which sets whether the cache's statistics are enabled. * * @return this configuration instance * @see #setStatistics(boolean) */ public final CacheConfiguration statistics(boolean statistics) { setStatistics(statistics); return this; }
/** * Builder which sets whether the cache's statistics are enabled. * * @return this configuration instance * @see #setStatistics(boolean) */ @Deprecated public final CacheConfiguration statistics(boolean statistics) { setStatistics(statistics); return this; }
/** * Builder which sets whether the cache's statistics are enabled. * * @return this configuration instance * @see #setStatistics(boolean) */ @Deprecated public final CacheConfiguration statistics(boolean statistics) { setStatistics(statistics); return this; }
/** * Read cache config from the file caches.dat * * @param strCacheName * The cache name * @return The config */ private CacheConfiguration getCacheConfiguration( String strCacheName ) { CacheConfiguration config = new CacheConfiguration( ); config.setName( strCacheName ); config.setMaxElementsInMemory( getIntProperty( strCacheName, PROPERTY_MAX_ELEMENTS, _nDefaultMaxElementsInMemory ) ); config.setEternal( getBooleanProperty( strCacheName, PROPERTY_ETERNAL, _bDefaultEternal ) ); config.setTimeToIdleSeconds( getLongProperty( strCacheName, PROPERTY_TIME_TO_IDLE, _lDefaultTimeToIdle ) ); config.setTimeToLiveSeconds( getLongProperty( strCacheName, PROPERTY_TIME_TO_LIVE, _lDefaultTimeToLive ) ); config.setOverflowToDisk( getBooleanProperty( strCacheName, PROPERTY_OVERFLOW_TO_DISK, _bDefaultOverflowToDisk ) ); config.setDiskPersistent( getBooleanProperty( strCacheName, PROPERTY_DISK_PERSISTENT, _bDefaultDiskPersistent ) ); config.setDiskExpiryThreadIntervalSeconds( getLongProperty( strCacheName, PROPERTY_DISK_EXPIRY, _lDefaultDiskExpiry ) ); config.setMaxElementsOnDisk( getIntProperty( strCacheName, PROPERTY_MAX_ELEMENTS_DISK, _nDefaultMaxElementsOnDisk ) ); config.setStatistics( getBooleanProperty( strCacheName, PROPERTY_STATISTICS, _bDefaultStatistics ) ); return config; }