/** * @return this configuration instance * @see #addTerracotta(TerracottaConfiguration) */ public final CacheConfiguration terracotta(TerracottaConfiguration terracottaConfiguration) { addTerracotta(terracottaConfiguration); return this; }
private void terracota(final Config config) { TerracottaConfiguration terracota = new TerracottaConfiguration(); String path = this.path + ".terracotta"; sconf(path, config, "nonstop", conf -> terracota.addNonstop(nonstop(path + ".nonstop", conf))); sbool(path, config, "cacheXA", terracota::setCacheXA); sbool(path, config, "clustered", terracota::setClustered); sbool(path, config, "coherent", coherent -> terracota.setConsistency(coherent ? Consistency.STRONG : Consistency.EVENTUAL)); sbool(path, config, "compressionEnabled", terracota::setCompressionEnabled); sint(path, config, "concurrency", terracota::setConcurrency); sstr(path, config, "consistency", terracota::setConsistency); sbool(path, config, "localCacheEnabled", terracota::setLocalCacheEnabled); sbool(path, config, "localKeyCache", terracota::setLocalKeyCache); sint(path, config, "localKeyCacheSize", terracota::setLocalKeyCacheSize); sbool(path, config, "orphanEviction", terracota::setOrphanEviction); sint(path, config, "orphanEvictionPeriod", terracota::setOrphanEvictionPeriod); sbool(path, config, "synchronousWrites", terracota::setSynchronousWrites); cache.addTerracotta(terracota); }
/** * @return this configuration instance * @see #addTerracotta(TerracottaConfiguration) */ public final CacheConfiguration terracotta(TerracottaConfiguration terracottaConfiguration) { addTerracotta(terracottaConfiguration); return this; }
/** * @return this configuration instance * @see #addTerracotta(TerracottaConfiguration) */ public final CacheConfiguration terracotta(TerracottaConfiguration terracottaConfiguration) { addTerracotta(terracottaConfiguration); return this; }
/** * @return this configuration instance * @see #addTerracotta(TerracottaConfiguration) */ public final CacheConfiguration terracotta(TerracottaConfiguration terracottaConfiguration) { addTerracotta(terracottaConfiguration); return this; }
supportConfig.addTerracotta(newTerracottaConfig); } else { supportConfig.setMaxElementsOnDisk(activeSize); }
supportConfig.addTerracotta(newTerracottaConfig); } else { supportConfig.setMaxElementsOnDisk(activeSize); }
supportConfig.addTerracotta(newTerracottaConfig); } else { supportConfig.setMaxElementsOnDisk(activeSize); }
private void terracota(final Config config) { TerracottaConfiguration terracota = new TerracottaConfiguration(); String path = this.path + ".terracotta"; sconf(path, config, "nonstop", conf -> terracota.addNonstop(nonstop(path + ".nonstop", conf))); sbool(path, config, "cacheXA", terracota::setCacheXA); sbool(path, config, "clustered", terracota::setClustered); sbool(path, config, "coherent", coherent -> terracota.setConsistency(coherent ? Consistency.STRONG : Consistency.EVENTUAL)); sbool(path, config, "compressionEnabled", terracota::setCompressionEnabled); sint(path, config, "concurrency", terracota::setConcurrency); sstr(path, config, "consistency", terracota::setConsistency); sbool(path, config, "localCacheEnabled", terracota::setLocalCacheEnabled); sbool(path, config, "localKeyCache", terracota::setLocalKeyCache); sint(path, config, "localKeyCacheSize", terracota::setLocalKeyCacheSize); sbool(path, config, "orphanEviction", terracota::setOrphanEviction); sint(path, config, "orphanEvictionPeriod", terracota::setOrphanEvictionPeriod); sbool(path, config, "synchronousWrites", terracota::setSynchronousWrites); cache.addTerracotta(terracota); }