void waitBeforeNextPoll(int pollingInterval) throws InterruptedException {
synchronized (this) {
    wait(pollingInterval);
  }
  if (!pollOutstanding) {
    return;
  }
  log.debug("--- extra wait");
  for (int i=0; i < 20; i++) {
synchronized (this) {
      wait(pollingInterval / 4);
    }
    log.debug("-------------extra wait");
    if (!pollOutstanding) {
      return;
    }
  }
}

void waitBeforeNextPoll ( int pollingInterval ) throws InterruptedException { synchronized ( this ) { wait ( pollingInterval ) ; } if ( ! pollOutstanding ) { return ; } log . debug ( "--- extra wait" ) ; for ( int i = 0 ; i < 20 ; i ++ ) { synchronized ( this ) { wait ( pollingInterval / 4 ) ; } log . debug ( "-------------extra wait" ) ; if ( ! pollOutstanding ) { return ; } } }
wait before sending next poll . < p > waits specified time , and then checks to see if response has been returned . if not , it waits again ( twice ) by 1 / 2 the interval , then finally polls anyway .
