public Configuration newConfiguration(String cacheName, String configDeclaration, CacheType cacheType,
IsolationLevel isolation, boolean keyCache, int keyMaxSize,
boolean unlockedRead, boolean logging, int maxTti, int maxTtl,
boolean orphanEviction, int orphanPeriod, int targetMaxInMemoryCount,
int targetMaxTotalCount) {
return new ImmutableConfiguration(cacheName, configDeclaration, cacheType, isolation, keyCache, keyMaxSize,
unlockedRead, new MutableConfig().setName(cacheName).setLoggingEnabled(logging)
.setMaxTTISeconds(maxTti).setMaxTTLSeconds(maxTtl)
.setOrphanEvictionEnabled(orphanEviction)
.setOrphanEvictionPeriod(orphanPeriod)
.setTargetMaxInMemoryCount(targetMaxInMemoryCount)
.setTargetMaxTotalCount(targetMaxTotalCount));
}