protected void stopConsumer() throws Exception { ServiceHelper.stopService(delegate); delegate = null; delegateService = null; }
@Override protected void doStop() throws Exception { super.doStop(); ServiceHelper.stopServices(bootstrapFactories.values()); bootstrapFactories.clear(); ServiceHelper.stopService(multiplexChannelHandlers.values()); multiplexChannelHandlers.clear(); } }
@Override protected void doStop() throws Exception { ServiceHelper.stopService(loadBalancer); }
protected void stopConsumer() throws Exception { ServiceHelper.stopService(delegate); delegate = null; delegateService = null; }
@Override protected void doStop() throws Exception { ServiceHelper.stopService(http); } }
@Override protected void doStop() throws Exception { ServiceHelper.stopService(producerTemplate); } }
@Override protected void doStop() throws Exception { this.tracker.close(); ServiceHelper.stopService(this.delegate); this.delegate = null; }
@Override protected void doStop() throws Exception { loadBalancers.values().forEach(ZoneAwareLoadBalancer::stopServerListRefreshing); loadBalancers.clear(); ServiceHelper.stopService(serviceDiscovery); }
public void removedService(ServiceReference<TypeConverterLoader> serviceReference, Object o) { LOG.trace("RemovedService: {}, Bundle: {}", serviceReference, serviceReference.getBundle()); try { ServiceHelper.stopService(this.delegate); } catch (Exception e) { // ignore LOG.debug("Error stopping service due: " + e.getMessage() + ". This exception will be ignored.", e); } // It can force camel to reload the type converter again this.delegate = null; // TODO: reloading all type converters when one service is removed is suboptimal... }
@Override protected void doStop() throws Exception { ServiceHelper.stopService(producerCache); super.doStop(); }
@Override protected void doStop() throws Exception { ServiceHelper.stopService(cacheManagerFactory); super.doStop(); } }
@Override protected void doStop() throws Exception { ServiceHelper.stopService(statisticsProcessor); super.doStop(); }
@Override protected void doStop() throws Exception { ServiceHelper.stopService(endpoint); super.doStop(); } }
@Override protected void doStop() throws Exception { ServiceHelper.stopService(service); super.doStop(); }
@Override protected void doStop() throws Exception { ServiceHelper.stopService(endpoint); super.doStop(); } }
@Override protected void doStop() throws Exception { ServiceHelper.stopService(statisticsCalculator); super.doStop(); }
@Override protected void doStop() throws Exception { LOG.debug("Netty consumer unbinding from: {}", configuration.getAddress()); ServiceHelper.stopService(nettyServerBootstrapFactory); LOG.info("Netty consumer unbound from: {}", configuration.getAddress()); super.doStop(); }
@Override protected void doStop() throws Exception { LOG.debug("Netty consumer unbinding from: {}", configuration.getAddress()); ServiceHelper.stopService(nettyServerBootstrapFactory); LOG.info("Netty consumer unbound from: {}", configuration.getAddress()); super.doStop(); }
@Override protected void doStop() throws Exception { // stop event notifier camelContext.getManagementStrategy().removeEventNotifier(eventNotifier); ServiceHelper.stopService(eventNotifier); // remove route policy camelContext.getRoutePolicyFactories().remove(this); }
@Override protected void doStop() throws Exception { ServiceHelper.stopService(map); if (scheduledExecutorService != null && stopScheduledExecutorService) { camelContext.getExecutorServiceManager().shutdown(scheduledExecutorService); scheduledExecutorService = null; } if (workerPool != null && stopWorkerPool) { camelContext.getExecutorServiceManager().shutdown(workerPool); workerPool = null; } }