question: 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 ; } } }
target:  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.