163164165166167168169170171172173
Set undelegated = new HashSet(); for (CacheWriter w : writers) { w.stop(); if (w instanceof DelegatingCacheWriter) { CacheWriter actual = undelegate(w); actual.stop(); undelegated.add(actual); } else { undelegated.add(w); } }
176177178179180181182183184185186
if (!undelegated.contains(l)) l.stop(); if (l instanceof DelegatingCacheLoader) { CacheLoader actual = undelegate(l); if (!undelegated.contains(actual)) { actual.stop(); } } } }