@Override public void handleLeave(String cacheName, Address leaver, int viewId) throws Exception { if (isShuttingDown) { log.debugf( "Ignoring leave request from %s for cache %s, the local cache manager is shutting down", leaver, cacheName); return; } ClusterCacheStatus cacheStatus = cacheStatusMap.get(cacheName); if (cacheStatus == null) { // This can happen if we've just become coordinator log.tracef( "Ignoring leave request from %s for cache %s because it doesn't have a cache status entry"); return; } cacheStatus.doLeave(leaver); }