Lines Matching refs:delay

39  * turn, delay the execution of subsequent tasks, which may "bunch up" and
68 * executing tasks at a given rate or delay. It is effectively a more
180 * Schedules the specified task for execution after the specified delay.
183 * @param delay delay in milliseconds before task is to be executed.
184 * @throws IllegalArgumentException if <tt>delay</tt> is negative, or
185 * <tt>delay + System.currentTimeMillis()</tt> is negative.
190 public void schedule(TimerTask task, long delay) {
191 if (delay < 0)
192 throw new IllegalArgumentException("Negative delay.");
193 sched(task, System.currentTimeMillis()+delay, 0);
212 * Schedules the specified task for repeated <i>fixed-delay execution</i>,
213 * beginning after the specified delay. Subsequent executions take place
216 * <p>In fixed-delay execution, each execution is scheduled relative to
224 * <p>Fixed-delay execution is appropriate for recurring activities
234 * @param delay delay in milliseconds before task is to be executed.
236 * @throws IllegalArgumentException if {@code delay < 0}, or
237 * {@code delay + System.currentTimeMillis() < 0}, or
243 public void schedule(TimerTask task, long delay, long period) {
244 if (delay < 0)
245 throw new IllegalArgumentException("Negative delay.");
248 sched(task, System.currentTimeMillis()+delay, -period);
252 * Schedules the specified task for repeated <i>fixed-delay execution</i>,
256 * <p>In fixed-delay execution, each execution is scheduled relative to
266 * <p>Fixed-delay execution is appropriate for recurring activities
292 * beginning after the specified delay. Subsequent executions take place
314 * @param delay delay in milliseconds before task is to be executed.
316 * @throws IllegalArgumentException if {@code delay < 0}, or
317 * {@code delay + System.currentTimeMillis() < 0}, or
323 public void scheduleAtFixedRate(TimerTask task, long delay, long period) {
324 if (delay < 0)
325 throw new IllegalArgumentException("Negative delay.");
328 sched(task, System.currentTimeMillis()+delay, period);