/** Disable the cache. */ public void disable() { M_log.debug("disable()"); m_disabled = true; m_eventTrackingService.deleteObserver(this); clear(); } // disable
/** Clean up. */ public void destroy() { cache.removeAll(); // TODO Do we boolean doNotNotifyCacheReplicators? Ian? cache.getStatistics().clearStatistics(); // if we are not in a global shutdown if (!ComponentManager.hasBeenClosed()) { // remove my registration m_memoryService.unregisterCacher(this); // remove my event notification registration m_eventTrackingService.deleteObserver(this); } }
@Override public void destroy() { eventTrackingService.deleteObserver(observer); super.destroy(); }