134135136137138139140141
log.trace("Clearing all objects from cache [" + cache.getName() + "]"); } try { cache.removeAll(); } catch (Throwable t) { throw new CacheException(t); } }
142143144145146147148149
public int size() { try { return cache.getSize(); } catch (Throwable t) { throw new CacheException(t); } }
156157158159160161162163
return Collections.unmodifiableSet(new LinkedHashSet<K>(keys)); } else { return Collections.emptySet(); } } catch (Throwable t) { throw new CacheException(t); } }
177178179180181182183184
return Collections.unmodifiableList(values); } else { return Collections.emptyList(); } } catch (Throwable t) { throw new CacheException(t); } }
209210211212213214215216
public long getMemoryStoreSize() { try { return cache.getMemoryStoreSize(); } catch (Throwable t) { throw new CacheException(t); } }
224225226227228229230231
*/ public long getDiskStoreSize() { try { return cache.getDiskStoreSize(); } catch (Throwable t) { throw new CacheException(t); } }
170171172173174175176177
log.info("Using existing EHCache named [" + cache.getName() + "]"); } } return new EhCache<K, V>(cache); } catch (net.sf.ehcache.CacheException e) { throw new CacheException(e); } }
219220221222223224225226
log.debug("implicit cacheManager created successfully."); } } return this.manager; } catch (Exception e) { throw new CacheException(e); } }
210211212213214215216217
264265266267268269270271
} cacheManagerImplicitlyCreated = true; } return this.manager; } catch (Exception e) { throw new CacheException(e); } }