private void delayRetry(int multiplier){
  debug("Sleeping before next retry...");
  try {
    Thread.sleep(1000 * multiplier);
  }
 catch (  InterruptedException e) {
    warn(e,"Thread sleeping failed.\nContinuing with the next retry.");
  }
}

private void delayRetry ( int multiplier ) { debug ( "Sleeping before next retry..." ) ; try { Thread . sleep ( 1000 * multiplier ) ; } catch ( InterruptedException e ) { warn ( e , "Thread sleeping failed.\nContinuing with the next retry." ) ; } }
dalays the current thread . logs any errors . the delay is 1000 millis * the given multiplier . used within a loop , the iterator index can be used to give progressively longer delays .
