public void shutdown() { preshutdown(); while (true) { TimeUnit unit = TimeUnit.SECONDS; long t = 10L; try { if (retireThreadPool.awaitTermination(t, unit)) break; } catch (InterruptedException e) { log.warn("Exception when trying to shutdown. Will retry.", e); } } log.info("shutting down thread pool complete."); log.info("shutting down indices."); box.shutdown(); log.info("shutting down indices complete."); }
public void shutdown() { preshutdown(); while (true) { TimeUnit unit = TimeUnit.SECONDS; long t = 10L; try { if (retireThreadPool.awaitTermination(t, unit)) break; } catch (InterruptedException e) { log.warn("Exception when trying to shutdown. Will retry.", e); } } log.info("shutting down thread pool complete."); log.info("shutting down indices."); box.shutdown(); log.info("shutting down indices complete."); }
public void shutdown() { preshutdown(); while(true) { TimeUnit unit=TimeUnit.SECONDS; long t=10L; try { if (retireThreadPool.awaitTermination(t, unit)) break; } catch (InterruptedException e) { log.warn("Exception when trying to shutdown. Will retry.", e); } } log.info("shutting down thread pool complete."); log.info("shutting down indices."); box.shutdown(); log.info("shutting down indices complete."); } public synchronized List<ZoieIndexReader<R>> getIndexReaders() throws IOException