Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (; cur_time < retryTimes; ++cur_time) {
- try {
- //todo
- return ;
- } catch (Exception e) {
- LOGGER.warn("cannot reach, will retry " + cur_time + " .... " + e.toString());
- try {
- Thread.sleep(sleepSeconds * 1000);
- } catch (InterruptedException e1) {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement