@Test public void testLoadAll() throws InterruptedException, ExecutionException, CacheException { CountingCacheLoader countingCacheLoader = new CountingCacheLoader(); JCache jcache = new JCache(manager.getCache("sampleCache1"), countingCacheLoader); jcache.loadAll(null); List keys = new ArrayList(); for (int i = 0; i < 999; i++) { keys.add(new Integer(i)); } jcache.put(new Integer(1), ""); jcache.loadAll(keys); Thread.sleep((long) (3000 * StopWatch.getSpeedAdjustmentFactor())); assertEquals(999, jcache.size()); assertEquals(998, countingCacheLoader.getLoadAllCounter()); }
public void loadAll(final Collection keys) throws CacheException { loadAll(keys, null); }
JCache implements net.sf.jsr107cache.Cache { public void loadAll(final Collection keys) throws CacheException { loadAll(keys, null); } }
JCache implements net.sf.jsr107cache.Cache { public void loadAll(final Collection keys) throws CacheException { loadAll(keys, null); } JCache(Ehcache cache);  JCache(Ehcache cache, net.sf.jsr107cache.CacheLoader cacheLoader);  JCache(Ehcache cache, JCacheLoader cacheLoader); }
JCache implements net.sf.jsr107cache.Cache { public void loadAll(final Collection keys) throws CacheException { loadAll(keys, null); } JCache(Ehcache cache);  JCache(Ehcache cache, net.sf.jsr107cache.CacheLoader cacheLoader);  JCache(Ehcache cache, JCacheLoader cacheLoader); void setCacheLoader(JCacheLoader cacheLoader); void addListener(CacheListener cacheListener); void evict(); Map getAll(Collection keys); Map getAll(Collection keys, Object loaderArgument); CacheLoader getCacheLoader(); CacheEntry getCacheEntry(Object key); CacheStatistics getCacheStatistics(); void load(final Object key); void loadAll(final Collection keys); void loadAll(final Collection keys, final Object loaderArgument); Object peek(Object key); void removeListener(CacheListener cacheListener); int size(); boolean isEmpty(); boolean containsKey(Object key); boolean containsValue(Object value); Object get(Object key); Object get(Object key, Object loaderArgument); Object get(Object key, JCacheLoader loader); Object get(Object key, JCacheLoader loader, Object loaderArgument); Object put(Object key, Object value); Object put(Object key, Object value, int timeToLiveSeconds); Object remove(Object key); void putAll(Map sourceMap); void clear(); Set keySet(); Collection values(); Set entrySet(); void setStatisticsAccuracy(int statisticsAccuracy); Ehcache getBackingCache(); String toString(); }
JCache implements net.sf.jsr107cache.Cache { public void loadAll(final Collection keys) throws CacheException { loadAll(keys, null); } JCache(Ehcache cache);  JCache(Ehcache cache, net.sf.jsr107cache.CacheLoader cacheLoader);  JCache(Ehcache cache, JCacheLoader cacheLoader); void setCacheLoader(JCacheLoader cacheLoader); void addListener(CacheListener cacheListener); void evict(); Map getAll(Collection keys); Map getAll(Collection keys, Object loaderArgument); CacheLoader getCacheLoader(); CacheEntry getCacheEntry(Object key); CacheStatistics getCacheStatistics(); void load(final Object key); void loadAll(final Collection keys); void loadAll(final Collection keys, final Object loaderArgument); Object peek(Object key); void removeListener(CacheListener cacheListener); int size(); boolean isEmpty(); boolean containsKey(Object key); boolean containsValue(Object value); Object get(Object key); Object get(Object key, Object loaderArgument); Object get(Object key, JCacheLoader loader); Object get(Object key, JCacheLoader loader, Object loaderArgument); Object put(Object key, Object value); Object put(Object key, Object value, int timeToLiveSeconds); Object remove(Object key); void putAll(Map sourceMap); void clear(); Set keySet(); Collection values(); Set entrySet(); void setStatisticsAccuracy(int statisticsAccuracy); Ehcache getBackingCache(); String toString();  }