@Override public void close() { try { connectionManager.destroy(); clientTransport.shutdownNow(); final ExecutorService service = clientConfig.executorService(); if (service != null) { service.shutdown(); } if (timeoutExecutor != null) { timeoutExecutor.stop(); timeoutExecutor.getThreadPool().shutdownNow(); } } catch (IOException ignored) { } }
@Override public void close() { try { connectionManager.destroy(); clientTransport.shutdownNow(); final ExecutorService service = clientConfig.executorService(); if (service != null) { service.shutdown(); } if (timeoutExecutor != null) { timeoutExecutor.stop(); timeoutExecutor.getThreadPool().shutdownNow(); } } catch (IOException ignored) { } }
@Override public void close() { try { connectionManager.destroy(); clientTransport.shutdownNow(); final ExecutorService service = clientConfig.executorService(); if (service != null) { service.shutdown(); } if (timeoutExecutor != null) { timeoutExecutor.stop(); timeoutExecutor.getThreadPool().shutdownNow(); } } catch (IOException ignored) { } }
@Override public void close() { try { connectionManager.destroy(); clientTransport.shutdownNow(); final ExecutorService service = clientConfig.executorService(); if (service != null) { service.shutdown(); } if (timeoutExecutor != null) { timeoutExecutor.stop(); timeoutExecutor.getThreadPool().shutdownNow(); } } catch (IOException ignored) { } }
@Override public void close() { try { connectionManager.destroy(); clientTransport.shutdownNow(); final ExecutorService service = clientConfig.executorService(); if (service != null) { service.shutdown(); } if (timeoutExecutor != null) { timeoutExecutor.stop(); timeoutExecutor.getThreadPool().shutdownNow(); } } catch (IOException ignored) { } }