@Override public void call() throws Exception { retryFuture.cancel(true); retryExecutor.shutdownNow(); destroy(); } });
@Override public void call() throws Exception { retryFuture.cancel(true); retryExecutor.shutdownNow(); destroy(); } });
@Override public void destroy() { super.destroy(); try { zkClient.close(); } catch (Exception e) { LOGGER.warn("Failed to close zookeeper client " + getNode() + ", cause: " + e.getMessage(), e); } } }
@Override public void destroy() { super.destroy(); try { zkClient.close(); } catch (Exception e) { LOGGER.warn("Failed to close zookeeper client " + getNode() + ", cause: " + e.getMessage(), e); } } }
@Override public void destroy() { super.destroy(); try { expireFuture.cancel(true); } catch (Throwable t) { LOGGER.warn(t.getMessage(), t); } try { for (Notifier notifier : notifiers.values()) { notifier.shutdown(); } } catch (Throwable t) { LOGGER.warn(t.getMessage(), t); } for (Map.Entry<String, JedisPool> entry : jedisPools.entrySet()) { JedisPool jedisPool = entry.getValue(); try { jedisPool.destroy(); } catch (Throwable t) { LOGGER.warn("Failed to destroy the redis registry client. registry: " + entry.getKey() + ", cause: " + t.getMessage(), t); } } }
@Override public void destroy() { super.destroy(); try { expireFuture.cancel(true); } catch (Throwable t) { LOGGER.warn(t.getMessage(), t); } try { for (Notifier notifier : notifiers.values()) { notifier.shutdown(); } } catch (Throwable t) { LOGGER.warn(t.getMessage(), t); } for (Map.Entry<String, JedisPool> entry : jedisPools.entrySet()) { JedisPool jedisPool = entry.getValue(); try { jedisPool.destroy(); } catch (Throwable t) { LOGGER.warn("Failed to destroy the redis registry client. registry: " + entry.getKey() + ", cause: " + t.getMessage(), t); } } }
@Override public void call() throws Exception { retryFuture.cancel(true); retryExecutor.shutdownNow(); destroy(); } });
@Override public void destroy() { super.destroy(); try { zkClient.close(); } catch (Exception e) { LOGGER.warn("Failed to close zookeeper client " + getNode() + ", cause: " + e.getMessage(), e); } } }
@Override public void destroy() { super.destroy(); try { expireFuture.cancel(true); } catch (Throwable t) { LOGGER.warn(t.getMessage(), t); } try { for (Notifier notifier : notifiers.values()) { notifier.shutdown(); } } catch (Throwable t) { LOGGER.warn(t.getMessage(), t); } for (Map.Entry<String, JedisPool> entry : jedisPools.entrySet()) { JedisPool jedisPool = entry.getValue(); try { jedisPool.destroy(); } catch (Throwable t) { LOGGER.warn("Failed to destroy the redis registry client. registry: " + entry.getKey() + ", cause: " + t.getMessage(), t); } } }