use of com.hazelcast.config.CacheConfiguration in project hazelcast by hazelcast.
the class CallbackAwareClientDelegatingFutureTest method createCache.
private Cache createCache(int blockMilis, boolean throwError) {
CachingProvider cachingProvider = HazelcastClientCachingProvider.createCachingProvider(client);
CacheManager cacheManager = cachingProvider.getCacheManager();
CacheConfiguration cacheConfig = new CacheConfig().setReadThrough(true).setCacheLoaderFactory(new BlockableCacheLoaderFactory(blockMilis, throwError));
return cacheManager.createCache(CACHE_NAME, cacheConfig);
}
Aggregations