Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. for (; cur_time < retryTimes; ++cur_time) {
  2.  
  3. try {
  4. //todo
  5.  
  6. return ;
  7.  
  8. } catch (Exception e) {
  9.  
  10. LOGGER.warn("cannot reach, will retry " + cur_time + " .... " + e.toString());
  11.  
  12. try {
  13. Thread.sleep(sleepSeconds * 1000);
  14. } catch (InterruptedException e1) {
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement