private boolean shouldContinue(long timeout){
  if (timeout <= 0) {
    return true;
  }
  return timeout > System.currentTimeMillis();
}

private boolean shouldContinue ( long timeout ) { if ( timeout <= 0 ) { return true ; } return timeout > System . currentTimeMillis ( ) ; }
should attempts continue . - 1 means yes , otherwise check time timeout value against current time .
