docs: public StreamQueryConfig withIdleStateRetentionTime(Time minTime, Time maxTime) {
  
  		if (maxTime.toMilliseconds() - minTime.toMilliseconds() < 300000 &&
  				!(maxTime.toMilliseconds() == 0 && minTime.toMilliseconds() == 0)) {
  			throw new IllegalArgumentException(
  					"Difference between minTime: " + minTime.toString() + " and maxTime: " + maxTime.toString() +
  					"shoud be at least 5 minutes.");
  		}
  		minIdleStateRetentionTime = minTime.toMilliseconds();
  		maxIdleStateRetentionTime = maxTime.toMilliseconds();
  		return this;
  	}