Lines Matching defs:timeout
30 * Auxiliary class to run target w/ given timeout.
34 private final long timeout;
39 * @param timeout a timeout. zero means no time limitation
43 * @throws IllegalArgumentException if timeout is negative or
46 public TimeLimitedRunner(long timeout, double factor,
49 if (timeout < 0) {
50 throw new IllegalArgumentException("timeout[" + timeout + "] < 0");
55 this.stoptime = System.currentTimeMillis() + timeout;
56 this.timeout = timeout;
62 * Runs @{linkplan target} while it returns true and timeout isn't exceeded
68 if (timeout != 0 && iterStart > stoptime) {
72 if (timeout != 0) {