@Override public void resetCounters() { cache.removeAll(); }
@Override public void clear() { cacheMonitor.countFlush(this.name); ehcache.removeAll(); }
@Override public void removeAll(boolean doNotNotifyCacheReplicators) { removeAllLock().lock(); try { super.removeAll(doNotNotifyCacheReplicators); } finally { removeAllLock().unlock(); } }
@Override public void removeAll() { removeAllLock().lock(); try { super.removeAll(); } finally { removeAllLock().unlock(); } }
/** * Remove all entries from this cache. * * @throws CacheException in the event ehcache throws an exception it will be wrapped. */ @Override public void flush() throws CacheException { if ( cache == null ) { String error = "flush detected null cache name [" + name + "]"; throw new CacheException( GlobalErrIds.FT_NULL_CACHE, error ); } try { cache.removeAll(); } catch ( net.sf.ehcache.CacheException ce ) { String error = "flush cache name [" + name + "] caught CacheException=" + ce.getMessage(); throw new CacheException( GlobalErrIds.FT_CACHE_FLUSH_ERR, error, ce ); } }