/** * Clears the region. This command will be sent to all auxiliaries. Some auxiliaries, such as * the JDBC disk cache, can be configured to not honor removeAll requests. * <p> * @see org.apache.commons.jcs.engine.behavior.ICache#removeAll() */ @Override public void removeAll() throws IOException { removeAll( false ); }
/** * Will not pass the remove message remotely. * <p> * @throws IOException */ public void localRemoveAll() throws IOException { removeAll( true ); }
/** * Clears the region. This command will be sent to all auxiliaries. Some auxiliaries, such as * the JDBC disk cache, can be configured to not honor removeAll requests. * <p> * @see org.apache.commons.jcs.engine.behavior.ICache#removeAll() */ @Override public void removeAll() throws IOException { removeAll( false ); }
/** * Will not pass the remove message remotely. * <p> * @throws IOException */ public void localRemoveAll() throws IOException { removeAll( true ); }
@Override public void clear() { assertNotClosed(); try { delegate.removeAll(); } catch (final IOException e) { throw new CacheException(e); } }
/** * Removes all of the elements from a region. * <p> * @throws CacheException */ @Override public void clear() throws CacheException { try { this.getCacheControl().removeAll(); } catch ( IOException e ) { throw new CacheException( e ); } }
/** * Removes all of the elements from a region. * <p> * @throws CacheException */ @Override public void clear() throws CacheException { try { this.getCacheControl().removeAll(); } catch ( IOException e ) { throw new CacheException( e ); } }
cacheHub.getCache(cacheName).removeAll();
cacheHub.getCache(cacheName).removeAll();
/** * Processes a removeAll request. * <p> * If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote * origination. * <p> * @param cacheName * @param requesterId * @throws IOException */ @Override public void processRemoveAll( String cacheName, long requesterId ) throws IOException { CompositeCache<K, V> cache = getCacheManager().getCache( cacheName ); boolean keepLocal = !remoteHttpCacheServerAttributes.isLocalClusterConsistency(); if ( keepLocal ) { cache.localRemoveAll(); } else { cache.removeAll(); } }
/** * Processes a removeAll request. * <p> * If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote * origination. * <p> * @param cacheName * @param requesterId * @throws IOException */ @Override public void processRemoveAll( String cacheName, long requesterId ) throws IOException { CompositeCache<K, V> cache = getCacheManager().getCache( cacheName ); boolean keepLocal = !remoteHttpCacheServerAttributes.isLocalClusterConsistency(); if ( keepLocal ) { cache.localRemoveAll(); } else { cache.removeAll(); } }
try delegate.removeAll();
cacheHub.getCache(names[i]).removeAll();
cacheHub.getCache(names[i]).removeAll();