@Override public void clear() { this.cache.removeAll(); }
public void clear() { ehCache.removeAll(); }
public void clearCache() { cache.removeAll(); } }
@Override public void clear() { this.cache.removeAll(); }
public void clear() { this.cache.removeAll(); }
protected Ehcache getCache() { Ehcache cache = cacheManager.getCache("basiclookuptestcache"); cache.removeAll(); return cache; }
private Ehcache getCache() { Ehcache cache = cacheManager.getCache("ehcacheusercachetests"); cache.removeAll(); return cache; }
/** * Removes all elements in the cache, but leaves the cache in a useable state. */ public void clear() throws CacheException { if (log.isTraceEnabled()) { log.trace("Clearing all objects from cache [" + cache.getName() + "]"); } try { cache.removeAll(); } catch (Throwable t) { throw new CacheException(t); } }
@Test public void clearCache() throws Exception { myCache.clearCache(); verify(cache).removeAll(); }
@Override public void evictData() { try { getCache().removeAll(); } catch (IllegalStateException e) { throw new CacheException( e ); } catch (net.sf.ehcache.CacheException e) { if ( e instanceof NonStopCacheException ) { HibernateNonstopCacheExceptionHandler.getInstance() .handleNonstopCacheException( (NonStopCacheException) e ); } else { throw new CacheException( e ); } } }
/** * {@inheritDoc} */ public void removeAll(Collection<?> keys) throws IllegalStateException { underlyingCache.removeAll(keys); }
/** * {@inheritDoc} */ public void removeAll() throws IllegalStateException, CacheException { underlyingCache.removeAll(); }
/** * {@inheritDoc} */ public void removeAll(boolean doNotNotifyCacheReplicators) throws IllegalStateException, CacheException { underlyingCache.removeAll(doNotNotifyCacheReplicators); }
/** * {@inheritDoc} */ public void removeAll(Collection<?> keys, boolean doNotNotifyCacheReplicators) throws IllegalStateException { underlyingCache.removeAll(keys, doNotNotifyCacheReplicators); }
/** * {@inheritDoc} */ public void removeAll(boolean arg0) throws IllegalStateException, CacheException { // THIS IS GENERATED CODE -- DO NOT HAND MODIFY! Thread t = Thread.currentThread(); ClassLoader prev = t.getContextClassLoader(); t.setContextClassLoader(this.classLoader); try { this.cache.removeAll(arg0); } finally { t.setContextClassLoader(prev); } }
/** * {@inheritDoc} */ public void removeAll(Collection arg0, boolean arg1) throws IllegalStateException, NullPointerException { // THIS IS GENERATED CODE -- DO NOT HAND MODIFY! Thread t = Thread.currentThread(); ClassLoader prev = t.getContextClassLoader(); t.setContextClassLoader(this.classLoader); try { this.cache.removeAll(arg0, arg1); } finally { t.setContextClassLoader(prev); } }
/** * Removes all cached items. * * @throws IllegalStateException if the cache is not {@link net.sf.ehcache.Status#STATUS_ALIVE} */ public void removeAll() throws RemoteException, IllegalStateException { if (LOG.isDebugEnabled()) { LOG.debug("RMICachePeer for cache " + cache.getName() + ": remote removeAll received"); } cache.removeAll(true); }
/** * Remove all elements in the cache, but leave the cache in a useable state. * * @throws CacheException */ public final void clear() throws CacheException { try { cache.removeAll(); } catch (IllegalStateException e) { throw new CacheException(e); } }
/** * Removes all cached items. * * @throws IllegalStateException if the cache is not {@link net.sf.ehcache.Status#STATUS_ALIVE} */ public void removeAll() throws IllegalStateException, CacheException { CacheTransactionHelper.beginTransactionIfNeeded(cache); try { cache.removeAll(); } finally { CacheTransactionHelper.commitTransactionIfNeeded(cache); } }
public static void clearSingletons() { AnalyticsMetadataStore.instance().clear(); ArtifactMetadataStore.instance().clear(); AuthorizationMetadataStore.instance().clear(); ConfigRepoMetadataStore.instance().clear(); ElasticAgentMetadataStore.instance().clear(); NewSCMMetadataStore.instance().clear(); NotificationMetadataStore.instance().clear(); PackageMaterialMetadataStore.instance().clear(); PluggableTaskMetadataStore.instance().clear(); new CachingSubjectDnX509PrincipalExtractor().getCache().removeAll(); // SessionUtils.unsetCurrentUser(); // PackageMetadataStore.getInstance().clear(); PluggableTaskConfigStore.store().clear(); PluginSettingsMetadataStore.getInstance().clear(); RepositoryMetadataStore.getInstance().clear(); SCMMetadataStore.getInstance().clear(); } }