@Override protected void shutDown() throws Exception { if (discoveryService != null) { discoveryService.close(); } } }
@Override protected void shutDown() throws Exception { if (discoveryService != null) { discoveryService.close(); } } }
@Override protected void shutDown() throws Exception { if (discoveryService != null) { discoveryService.close(); } } }
@Override protected synchronized void doShutDown() { if (logCancellable != null) { logCancellable.cancel(); } if (discoveryServiceClient != null) { discoveryServiceClient.close(); } if (kafkaClient != null) { // Safe to call stop no matter what state the KafkaClientService is in. kafkaClient.stopAndWait(); } }
@Override protected synchronized void doShutDown() { if (logCancellable != null) { logCancellable.cancel(); } if (discoveryServiceClient != null) { discoveryServiceClient.close(); } if (kafkaClient != null) { // Safe to call stop no matter what state the KafkaClientService is in. kafkaClient.stopAndWait(); } }