@Override public void close() { if (client != null) { client.close(); } }
@Override public void close(int timeout) { if (client != null) { client.close(timeout); } }
@Override public void close(int timeout) { if (client != null) { client.close(timeout); } }
@Override public void close() { if (client != null) { client.close(); } }
@Override public void destroy() { // in order to avoid closing a client multiple times, a counter is used in case of connection per jvm, every // time when client.close() is called, counter counts down once, and when counter reaches zero, client will be // closed. if (super.isDestroyed()) { return; } else { // double check to avoid dup close destroyLock.lock(); try { if (super.isDestroyed()) { return; } super.destroy(); if (invokers != null) { invokers.remove(this); } for (ExchangeClient client : clients) { try { client.close(); } catch (Throwable t) { logger.warn(t.getMessage(), t); } } } finally { destroyLock.unlock(); } } }
@Override public void destroy() { // in order to avoid closing a client multiple times, a counter is used in case of connection per jvm, every // time when client.close() is called, counter counts down once, and when counter reaches zero, client will be // closed. if (super.isDestroyed()) { return; } else { // double check to avoid dup close destroyLock.lock(); try { if (super.isDestroyed()) { return; } super.destroy(); if (invokers != null) { invokers.remove(this); } for (ExchangeClient client : clients) { try { client.close(); } catch (Throwable t) { logger.warn(t.getMessage(), t); } } } finally { destroyLock.unlock(); } } }
client.close(ConfigurationUtils.getServerShutdownTimeout()); } catch (Throwable t) { logger.warn(t.getMessage(), t);
client.close(ConfigurationUtils.getServerShutdownTimeout()); } catch (Throwable t) { logger.warn(t.getMessage(), t);
logger.info("Close dubbo connect: " + client.getLocalAddress() + "-->" + client.getRemoteAddress()); client.close(ConfigurationUtils.getServerShutdownTimeout()); } catch (Throwable t) { logger.warn(t.getMessage(), t); logger.info("Close dubbo connect: " + client.getLocalAddress() + "-->" + client.getRemoteAddress()); client.close(ConfigurationUtils.getServerShutdownTimeout()); } catch (Throwable t) { logger.warn(t.getMessage(), t);
logger.info("Close dubbo connect: " + client.getLocalAddress() + "-->" + client.getRemoteAddress()); client.close(ConfigurationUtils.getServerShutdownTimeout()); } catch (Throwable t) { logger.warn(t.getMessage(), t); logger.info("Close dubbo connect: " + client.getLocalAddress() + "-->" + client.getRemoteAddress()); client.close(ConfigurationUtils.getServerShutdownTimeout()); } catch (Throwable t) { logger.warn(t.getMessage(), t);
@Override public void close() { if (client != null) { client.close(); } }
@Override public void close() { if (client != null) { client.close(); } }
@Override public void close(int timeout) { if (client != null) { client.close(timeout); } }
@Override public void close(int timeout) { if (client != null) { client.close(timeout); } }
@Override public void destroy() { // in order to avoid closing a client multiple times, a counter is used in case of connection per jvm, every // time when client.close() is called, counter counts down once, and when counter reaches zero, client will be // closed. if (super.isDestroyed()) { return; } else { // double check to avoid dup close destroyLock.lock(); try { if (super.isDestroyed()) { return; } super.destroy(); if (invokers != null) { invokers.remove(this); } for (ExchangeClient client : clients) { try { client.close(); } catch (Throwable t) { logger.warn(t.getMessage(), t); } } } finally { destroyLock.unlock(); } } }
client.close(ConfigurationUtils.getServerShutdownTimeout()); } catch (Throwable t) { logger.warn(t.getMessage(), t);