/** * Whether the Cache should copy elements it returns * * @param copyOnRead true, if copyOnRead */ public CacheConfiguration copyOnRead(boolean copyOnRead) { this.setCopyOnRead(copyOnRead); return this; }
/** * Whether the Cache should copy elements it returns * * @param copyOnRead true, if copyOnRead */ public CacheConfiguration copyOnRead(boolean copyOnRead) { this.setCopyOnRead(copyOnRead); return this; }
/** * Whether the Cache should copy elements it returns * * @param copyOnRead true, if copyOnRead */ public CacheConfiguration copyOnRead(boolean copyOnRead) { this.setCopyOnRead(copyOnRead); return this; }
/** * Whether the Cache should copy elements it returns * * @param copyOnRead true, if copyOnRead */ public CacheConfiguration copyOnRead(boolean copyOnRead) { this.setCopyOnRead(copyOnRead); return this; }
protected CacheConfiguration getEhCacheConfiguration(final org.bonitasoft.engine.cache.CacheConfiguration cacheConfig) { final CacheConfiguration ehCacheConfig = new CacheConfiguration(); ehCacheConfig.setMaxElementsInMemory(cacheConfig.getMaxElementsInMemory()); ehCacheConfig.setMaxElementsOnDisk(cacheConfig.getMaxElementsOnDisk()); ehCacheConfig.setOverflowToDisk(!cacheConfig.isInMemoryOnly()); ehCacheConfig.setEternal(cacheConfig.isEternal()); ehCacheConfig.setCopyOnRead(cacheConfig.isCopyOnRead()); ehCacheConfig.setCopyOnWrite(cacheConfig.isCopyOnWrite()); if (!cacheConfig.isEternal()) { ehCacheConfig.setTimeToLiveSeconds(cacheConfig.getTimeToLiveSeconds()); } return ehCacheConfig; }
protected CacheConfiguration getEhCacheConfiguration(final org.bonitasoft.engine.cache.CacheConfiguration cacheConfig) { final CacheConfiguration ehCacheConfig = new CacheConfiguration(); ehCacheConfig.setMaxElementsInMemory(cacheConfig.getMaxElementsInMemory()); ehCacheConfig.setMaxElementsOnDisk(cacheConfig.getMaxElementsOnDisk()); ehCacheConfig.setOverflowToDisk(!cacheConfig.isInMemoryOnly()); ehCacheConfig.setEternal(cacheConfig.isEternal()); ehCacheConfig.setCopyOnRead(cacheConfig.isCopyOnRead()); ehCacheConfig.setCopyOnWrite(cacheConfig.isCopyOnWrite()); if (!cacheConfig.isEternal()) { ehCacheConfig.setTimeToLiveSeconds(cacheConfig.getTimeToLiveSeconds()); } return ehCacheConfig; }