ClientCacheConfiguration target = new ClientCacheConfiguration().setName("Person") .setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL) .setBackups(3)
ClientCacheConfiguration cacheCfg = new ClientCacheConfiguration().setName("testBinaryQueries") .setQueryEntities(qryPerson);
new ClientCacheConfiguration().setName("testFailover").setCacheMode(CacheMode.REPLICATED) );
return new ClientCacheConfiguration().setName("TBD") // cache name is to be assigned later .setAtomicityMode(CacheAtomicityMode.fromOrdinal(reader.readInt())) .setBackups(reader.readInt()) .setMaxConcurrentAsyncOperations(reader.readInt()) .setMaxQueryIteratorsCount(reader.readInt()) .setName(reader.readString()) .setOnheapCacheEnabled(reader.readBoolean()) .setPartitionLossPolicy(PartitionLossPolicy.fromOrdinal((byte)reader.readInt()))
final String CACHE_NAME = "testCacheManagement"; ClientCacheConfiguration cacheCfg = new ClientCacheConfiguration().setName(CACHE_NAME) .setCacheMode(CacheMode.REPLICATED) .setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC);
final String CACHE_NAME = "testCacheConfiguration"; ClientCacheConfiguration cacheCfg = new ClientCacheConfiguration().setName(CACHE_NAME) .setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL) .setBackups(3)
return new ClientCacheConfiguration().setName("TBD") // cache name is to be assigned later .setAtomicityMode(CacheAtomicityMode.fromOrdinal(reader.readInt())) .setBackups(reader.readInt()) .setMaxConcurrentAsyncOperations(reader.readInt()) .setMaxQueryIteratorsCount(reader.readInt()) .setName(reader.readString()) .setOnheapCacheEnabled(reader.readBoolean()) .setPartitionLossPolicy(PartitionLossPolicy.fromOrdinal((byte)reader.readInt()))