synchronized public void destroy() { delegate.destroy(); } }
/** * Destroy created policies. */ public void destroy() { ListIterator<CachePolicy> iter = policies.listIterator(policies.size()); while(iter.hasPrevious()) { CachePolicy policy = iter.previous(); try { policy.destroy(); } catch (Throwable t) { log.debug("Exception while destroying policy: " + policy + ", problem: " + t); } } policies.clear(); }
public void destroy() { synchronized (getCacheLock()) { getCache().destroy(); } }