90919293949596
restart(); logger.info("restart the connector for next round retry."); } } throw new CanalClientException("failed to subscribe after " + times + " times retry."); }
107108109110111112113
times++; restart(); logger.info("restart the connector for next round retry."); } } throw new CanalClientException("failed to unsubscribe after " + times + " times retry."); }
124125126127128129130
times++; restart(); logger.info("restart the connector for next round retry."); } } throw new CanalClientException("failed to fetch the data after " + times + " times retry"); }
141142143144145146147
158159160161162163164
175176177178179180181
192193194195196197198
210211212213214215216
restart(); logger.info("restart the connector for next round retry."); } } throw new CanalClientException("failed to fetch the data after " + times + " times retry"); }
228229230231232233234
236237238239240241242243244
private void restart() throws CanalClientException { disconnect(); try { Thread.sleep(retryInterval); } catch (InterruptedException e) { throw new CanalClientException(e); } connect(); }