Skip to content

Commit

Permalink
# sprint-2 - Fixed warning in example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitiry Setrakyan committed Feb 28, 2015
1 parent a792c99 commit 375376b
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -64,19 +64,19 @@ public static IgniteConfiguration configure() throws IgniteException {

discoSpi.setIpFinder(ipFinder);

CacheConfiguration cacheCfg = new CacheConfiguration();
CacheConfiguration<Long, Person> cacheCfg = new CacheConfiguration<>();

// Set atomicity as transaction, since we are showing transactions in example.
cacheCfg.setAtomicityMode(TRANSACTIONAL);

CacheStore store;
CacheStore<Long, Person> store;

// Uncomment other cache stores to try them.
store = new CacheDummyPersonStore();
// store = new CacheJdbcPersonStore();
// store = new CacheHibernatePersonStore();

cacheCfg.setCacheStoreFactory(new FactoryBuilder.SingletonFactory(store));
cacheCfg.setCacheStoreFactory(new FactoryBuilder.SingletonFactory<>(store));
cacheCfg.setReadThrough(true);
cacheCfg.setWriteThrough(true);

Expand Down

0 comments on commit 375376b

Please sign in to comment.