loaderBuilder = fcsBuilder;
} else {
LoaderConfigurationBuilder tmpLoaderBuilder = builder.loaders().addCacheLoader();
tmpLoaderBuilder.cacheLoader(Util.<CacheLoader>getInstance(clc.getCacheLoaderClassName(), legacy.getClassLoader()));
if (clc instanceof CacheStoreConfig) {
CacheStoreConfig csc = (CacheStoreConfig) clc;
tmpLoaderBuilder.fetchPersistentState(csc.isFetchPersistentState());
tmpLoaderBuilder.ignoreModifications(csc.isIgnoreModifications());
tmpLoaderBuilder.purgeOnStartup(csc.isPurgeOnStartup());
tmpLoaderBuilder.purgerThreads(csc.getPurgerThreads());
tmpLoaderBuilder.purgeSynchronously(csc.isPurgeSynchronously());
loaderBuilder = tmpLoaderBuilder;
}
if (clc instanceof AbstractCacheStoreConfig) {
tmpLoaderBuilder.withProperties(((AbstractCacheLoaderConfig) clc).getProperties());
}
}
if (clc instanceof CacheStoreConfig) {
CacheStoreConfig csc = (CacheStoreConfig) clc;
loaderBuilder.async().enabled(csc.getAsyncStoreConfig().isEnabled());
loaderBuilder.async().flushLockTimeout(csc.getAsyncStoreConfig().getFlushLockTimeout());
loaderBuilder.async().modificationQueueSize(csc.getAsyncStoreConfig().getModificationQueueSize());
loaderBuilder.async().shutdownTimeout(csc.getAsyncStoreConfig().getShutdownTimeout());
loaderBuilder.async().threadPoolSize(csc.getAsyncStoreConfig().getThreadPoolSize());
loaderBuilder.singletonStore().enabled(csc.getSingletonStoreConfig().isSingletonStoreEnabled());
loaderBuilder.singletonStore().pushStateTimeout(csc.getSingletonStoreConfig().getPushStateTimeout());
loaderBuilder.singletonStore().pushStateWhenCoordinator(csc.getSingletonStoreConfig().isPushStateWhenCoordinator());
}
}
builder.locking()
.concurrencyLevel(legacy.getConcurrencyLevel())