long endTime= maxTime > 0 ? System.currentTimeMillis() + maxTime : Long.MAX_VALUE;
long endTime= maxTime > 0  && maxTime < Long.MAX_VALUE ? System.currentTimeMillis() + maxTime : Long.MAX_VALUE;
	public static boolean joinJobs(long minTime, long maxTime, long intervalTime) {		long startTime= System.currentTimeMillis() + minTime;		runEventQueue();		while (System.currentTimeMillis() < startTime)			runEventQueue(intervalTime);				long endTime= maxTime > 0 ? System.currentTimeMillis() + maxTime : Long.MAX_VALUE;		boolean calm= allJobsQuiet();		while (!calm && System.currentTimeMillis() < endTime) {			runEventQueue(intervalTime);			calm= allJobsQuiet();		}		return calm;	}