code: protected synchronized boolean isAvailable(long now) {
  		if (max == 0 || min == 0) {
  			return true;
  		}
  		if (now - max > lockTimeout) {
  			if (now - tested > lockTimeout) {
  				tested = now;
  				return true;
  			}
  			return false;
  		}
  		if (locked) {
  			return false;
  		}
  		if (now - min > windowLength) {
  			return true;
  		}
  		locked = true;
  		return false;
  	}
docs: --- CHECK ENDPOINT STATUS ---