Lines Matching refs:period

214      * at approximately regular intervals separated by the specified period.
221 * lower than the reciprocal of the specified period (assuming the system
235 * @param period time in milliseconds between successive task executions.
238 * {@code period <= 0}
243 public void schedule(TimerTask task, long delay, long period) {
246 if (period <= 0)
247 throw new IllegalArgumentException("Non-positive period.");
248 sched(task, System.currentTimeMillis()+delay, -period);
254 * approximately regular intervals, separated by the specified period.
261 * lower than the reciprocal of the specified period (assuming the system
277 * @param period time in milliseconds between successive task executions.
279 * {@code period <= 0}
284 public void schedule(TimerTask task, Date firstTime, long period) {
285 if (period <= 0)
286 throw new IllegalArgumentException("Non-positive period.");
287 sched(task, firstTime.getTime(), -period);
293 * at approximately regular intervals, separated by the specified period.
300 * exactly the reciprocal of the specified period (assuming the system
315 * @param period time in milliseconds between successive task executions.
318 * {@code period <= 0}
323 public void scheduleAtFixedRate(TimerTask task, long delay, long period) {
326 if (period <= 0)
327 throw new IllegalArgumentException("Non-positive period.");
328 sched(task, System.currentTimeMillis()+delay, period);
334 * approximately regular intervals, separated by the specified period.
341 * exactly the reciprocal of the specified period (assuming the system
359 * @param period time in milliseconds between successive task executions.
361 * {@code period <= 0}
367 long period) {
368 if (period <= 0)
369 throw new IllegalArgumentException("Non-positive period.");
370 sched(task, firstTime.getTime(), period);
375 * time with the specified period, in milliseconds. If period is
376 * positive, the task is scheduled for repeated execution; if period is
379 * and initial execution time, but not period.
386 private void sched(TimerTask task, long time, long period) {
390 // Constrain value of period sufficiently to prevent numeric
392 if (Math.abs(period) > (Long.MAX_VALUE >> 1))
393 period >>= 1;
404 task.period = period;
541 if (task.period == 0) { // Non-repeating, remove
546 task.period<0 ? currentTime - task.period
547 : executionTime + task.period);