.concurrencyLevel(1234).isolationLevel(IsolationLevel.SERIALIZABLE)
.lockAcquisitionTimeout(8888L).useLockStriping(false).writeSkewCheck(true)
.loaders()
.shared(true).passivation(false)
.addCacheLoader(
new FileCacheStoreConfig()
.purgeOnStartup(true)
.location("/tmp/2").streamBufferSize(1615)
.asyncStore()
.threadPoolSize(14).flushLockTimeout(777L)
.shutdownTimeout(666L)
.fetchPersistentState(false).ignoreModifications(true)
.singletonStore()
.pushStateWhenCoordinator(true).pushStateTimeout(8989L)
.purgeSynchronously(false))
.addCacheLoader(
new DummyInMemoryCacheStore.Cfg()
.debug(true)
.failKey("fail")
.purgeOnStartup(false)
.asyncStore()
.threadPoolSize(21)
.purgeSynchronously(true))
.addCacheLoader(
new ClusterCacheLoaderConfig().remoteCallTimeout(7694L))
.preload(true)
.transaction()
.cacheStopTimeout(1928).eagerLockSingleNode(false)
.syncCommitPhase(true).syncRollbackPhase(false).useEagerLocking(false)
.recovery()
.recoveryInfoCacheName("mmmmmircea")
.transactionManagerLookup(new DummyTransactionManagerLookup())
.useSynchronization(true)
.deadlockDetection()
.spinDuration(8373L)
.customInterceptors()
.add(new OptimisticLockingInterceptor()).first()
.add(new TxDistributionInterceptor()).last()
.add(new CallInterceptor()).atIndex(8)
.add(new CacheStoreInterceptor()).after(OptimisticLockingInterceptor.class)
.add(new CacheLoaderInterceptor()).before(CallInterceptor.class)
.eviction()
.maxEntries(7676).strategy(EvictionStrategy.LIRS)
.threadPolicy(EvictionThreadPolicy.PIGGYBACK)
.expiration()
.maxIdle(8392L).lifespan(4372L).wakeUpInterval(7585L)
.clustering()
.mode(Configuration.CacheMode.INVALIDATION_ASYNC)
.async()
.replQueueClass(ReplicationQueueImpl.class)
.asyncMarshalling(false)
.replQueueInterval(5738L)
.replQueueMaxElements(19191)
.useReplQueue(true)
.l1()
.lifespan(65738L).onRehash(true)
.stateRetrieval()
.alwaysProvideInMemoryState(false).fetchInMemoryState(true)
.initialRetryWaitTime(8989L).retryWaitTimeIncreaseFactor(4)
.numRetries(8).logFlushTimeout(533L).maxNonProgressingLogWrites(434)
.timeout(7383L).chunkSize(1234)
.hash()
.hashFunctionClass(MurmurHash3.class)
.consistentHashClass(DefaultConsistentHash.class)
.numOwners(200).rehashWait(74843L).rehashRpcTimeout(374L)
.rehashEnabled(false)
.dataContainer()
.dataContainerClass(DefaultDataContainer.class)
.dataContainer(new QueryableDataContainer())
.addProperty("a-property", "a-value")
.indexing()
.indexLocalOnly(true)
.addProperty("indexing", "in memory")
.unsafe()
.unreliableReturnValues(false)
.jmxStatistics()
.storeAsBinary()
.invocationBatching()
.build();
assert c.isInvocationBatchingEnabled();
assert c.isStoreAsBinary();
assert c.isExposeJmxStatistics();
assert !c.isUnsafeUnreliableReturnValues();
assert c.getDataContainer() instanceof QueryableDataContainer;
assertEquals(DefaultDataContainer.class.getName(), c.getDataContainerClass());
assertEquals("a-value", c.getDataContainerProperties().getProperty("a-property"));
assert c.isIndexingEnabled();
assert c.isIndexLocalOnly();
assert c.getIndexingProperties().getProperty("indexing").equals("in memory");
assert !c.isAlwaysProvideInMemoryState();
assert c.isFetchInMemoryState();
assert 8989L == c.getStateRetrievalInitialRetryWaitTime();
assert 4 == c.getStateRetrievalRetryWaitTimeIncreaseFactor();
assert 8 == c.getStateRetrievalNumRetries();
assert 533L == c.getStateRetrievalLogFlushTimeout();
assert 434 == c.getStateRetrievalMaxNonProgressingLogWrites();
assert 7383L == c.getStateRetrievalTimeout();
assert 1234 == c.getStateRetrievalChunkSize();
assertEquals(MurmurHash3.class.getName(), c.getHashFunctionClass());
assertEquals(DefaultConsistentHash.class.getName(), c.getConsistentHashClass());
assert 200 == c.getNumOwners();
assert 74843L == c.getRehashWaitTime();
assert 374L == c.getRehashRpcTimeout();
assert !c.isRehashEnabled();
assert c.isL1CacheEnabled();
assert c.isL1OnRehash();
assert 65738L == c.getL1Lifespan();
assert Configuration.CacheMode.INVALIDATION_ASYNC == c.getCacheMode();
assert !c.isUseAsyncMarshalling();
assertEquals(ReplicationQueueImpl.class.getName(), c.getReplQueueClass());
assert 5738L == c.getReplQueueInterval();
assert 19191 == c.getReplQueueMaxElements();
assert c.isUseReplQueue();
assert 4372L == c.getExpirationLifespan();
assert 8392L == c.getExpirationMaxIdle();
assert 7676 == c.getEvictionMaxEntries();
assert EvictionStrategy.LIRS == c.getEvictionStrategy();
assert EvictionThreadPolicy.PIGGYBACK == c.getEvictionThreadPolicy();
assert 7585L == c.getExpirationWakeUpInterval();
List<CustomInterceptorConfig> customInterceptors = c.getCustomInterceptors();
assert customInterceptors.get(0).getInterceptor() instanceof OptimisticLockingInterceptor;
assert customInterceptors.get(1).getInterceptor() instanceof BaseDistributionInterceptor;
assert customInterceptors.get(2).getInterceptor() instanceof CallInterceptor;
assert customInterceptors.get(3).getInterceptor() instanceof CacheStoreInterceptor;
assert customInterceptors.get(4).getInterceptor() instanceof CacheLoaderInterceptor;
assert c.isDeadlockDetectionEnabled();
assert 8373L == c.getDeadlockDetectionSpinDuration();
assert 1928 == c.getCacheStopTimeout();
assert !c.isEagerLockSingleNode();
assert c.isSyncCommitPhase();
assert !c.isSyncRollbackPhase();
assert !c.isUseEagerLocking();
assert c.getTransactionManagerLookup() instanceof DummyTransactionManagerLookup;
assert c.isTransactionRecoveryEnabled();
assertEquals("mmmmmircea", c.getTransactionRecoveryCacheName());
assert c.isUseSynchronizationForTransactions();
ClusterCacheLoaderConfig clusterLoaderConfig = (ClusterCacheLoaderConfig) c.getCacheLoaders().get(2);
assert 7694L == clusterLoaderConfig.getRemoteCallTimeout();
DummyInMemoryCacheStore.Cfg dummyStoreConfig = (DummyInMemoryCacheStore.Cfg) c.getCacheLoaders().get(1);
assert dummyStoreConfig.isDebug();
assert !dummyStoreConfig.isPurgeOnStartup();
assert dummyStoreConfig.isPurgeSynchronously();
assert 21 == dummyStoreConfig.getAsyncStoreConfig().getThreadPoolSize();
assert dummyStoreConfig.isPurgeSynchronously();
FileCacheStoreConfig storeConfig = (FileCacheStoreConfig) c.getCacheLoaders().get(0);
assertEquals("/tmp/2", storeConfig.getLocation());
assert 1615 == storeConfig.getStreamBufferSize();
assert storeConfig.isPurgeOnStartup();
assert 14 == storeConfig.getAsyncStoreConfig().getThreadPoolSize();
assert 777L == storeConfig.getAsyncStoreConfig().getFlushLockTimeout();
assert 666L == storeConfig.getAsyncStoreConfig().getShutdownTimeout();
assert !storeConfig.isFetchPersistentState();
assert storeConfig.isIgnoreModifications();
assert storeConfig.getSingletonStoreConfig().isPushStateWhenCoordinator();
assert 8989L == storeConfig.getSingletonStoreConfig().getPushStateTimeout();
assert !storeConfig.isPurgeSynchronously();
assert c.isCacheLoaderShared();
assert !c.isCacheLoaderPassivation();
assert c.isCacheLoaderPreload();
assert !c.isFetchPersistentState();