@Override public void stop(ComponentContext context) throws InterruptedException { super.stop(context); redirectResolver = null; }
@Override public void stop(ComponentContext context) throws InterruptedException { super.stop(context); codecs = null; }
@Override public void stop(ComponentContext context) throws InterruptedException { super.stop(context); avroService = null; }
@Override public void stop(ComponentContext context) throws InterruptedException { super.stop(context); codecFactories.clear(); }
@Override public void stop(ComponentContext context) throws InterruptedException { providers.values().forEach(KeyValueStoreProvider::close); super.stop(context); }
@Override public void stop(ComponentContext context) throws InterruptedException { stores.values().forEach(TransientStoreProvider::shutdown); super.stop(context); }
@Override @SuppressWarnings("Java8MapForEach") public void stop(ComponentContext context) throws InterruptedException { super.stop(context); // don't remove entrySet otherwise java will try to load mongo client classes even in a non mongo setup clients.entrySet().forEach(e -> { log.debug("Closing MongoClient with id={}", e::getKey); e.getValue().close(); }); clients.clear(); }
@Override public void stop(ComponentContext context) throws InterruptedException { super.stop(context); if (invalidator != null) { invalidator.close(); invalidator = null; } for (CacheManagement cache : caches.values()) { cache.stop(); } caches.clear(); started = false; }
@Override public void stop(ComponentContext context) throws InterruptedException { super.stop(context); stopComputations(); // should have already be done by the beforeStop listener closeLogManagers(); }
@Override public void stop(ComponentContext context) throws InterruptedException { super.stop(context); if (executor == null) { return; } try { executor.getPool().destroy(); } finally { executor = null; } }