return null;
}
};
callStoppingCacheFuture = executorService.submit(callStoppingCache);
}
cache.stop(); // now stop the cache
latch.countDown(); // now that cache has been stopped, let the thread continue
log.debug("All threads finished, let's shutdown the executor and check whether any exceptions were reported");
waitAfterModFuture.get();
if (callStoppingCacheFuture != null) {