Searched defs:delay (Results 1 - 11 of 11) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
H A DScheduledExecutorService.java40 * delay, or to execute periodically.
50 * with a requested delay of zero. Zero and negative delays (but not
61 * relative delay need not coincide with the current {@code Date} at
98 * after the given delay.
101 * @param delay the time from now to delay execution
102 * @param unit the time unit of the delay parameter
111 long delay, TimeUnit unit);
115 * given delay.
118 * @param delay th
110 schedule(Runnable command, long delay, TimeUnit unit) argument
126 schedule(Callable<V> callable, long delay, TimeUnit unit) argument
208 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument
[all...]
H A DExecutors.java246 * to run after a given delay, or to execute periodically.
264 * to run after a given delay, or to execute periodically. (Note
285 * given delay, or to execute periodically.
297 * given delay, or to execute periodically.
680 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { argument
681 return e.schedule(command, delay, unit);
683 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { argument
684 return e.schedule(callable, delay, unit);
689 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) { argument
690 return e.scheduleWithFixedDelay(command, initialDelay, delay, uni
[all...]
H A DScheduledThreadPoolExecutor.java57 * commands to run after a given delay, or to execute periodically.
71 * automatically removed from the work queue until its delay elapses.
140 * methods, which are treated as tasks with a delay of zero.
193 * A negative value indicates fixed-delay execution.
202 * Index into delay queue, to support faster cancellation.
520 private long triggerTime(long delay, TimeUnit unit) { argument
521 return triggerTime(unit.toNanos((delay < 0) ? 0 : delay));
527 long triggerTime(long delay) { argument
529 ((delay < (Lon
539 overflowFree(long delay) argument
553 schedule(Runnable command, long delay, TimeUnit unit) argument
570 schedule(Callable<V> callable, long delay, TimeUnit unit) argument
613 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument
[all...]
H A DCompletableFuture.java2526 whenComplete(new Canceller(Delayer.delay(new Timeout(this),
2550 whenComplete(new Canceller(Delayer.delay(
2558 * executor after the given delay (or no delay if non-positive).
2559 * Each delay commences upon invocation of the returned executor's
2562 * @param delay how long to delay, in units of {@code unit}
2564 * {@code delay} parameter
2571 public static Executor delayedExecutor(long delay, TimeUnit unit, argument
2575 return new DelayedExecutor(delay, uni
2592 delayedExecutor(long delay, TimeUnit unit) argument
2652 delay(Runnable command, long delay, TimeUnit unit) argument
2677 final long delay; field in class:CompletableFuture.DelayedExecutor
2680 DelayedExecutor(long delay, TimeUnit unit, Executor executor) argument
[all...]
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldThreadTest.java29 int delay; field in class:OldThreadTest.SimpleThread
35 this.wait(delay);
45 delay = d;
/libcore/ojluni/src/main/java/java/util/
H A DTimer.java39 * 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) { argument
191 if (delay < 0)
192 throw new IllegalArgumentException("Negative delay
243 schedule(TimerTask task, long delay, long period) argument
323 scheduleAtFixedRate(TimerTask task, long delay, long period) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DThreadTest.java26 int delay; field in class:ThreadTest.SimpleThread
32 this.wait(delay);
42 delay = d;
47 volatile int delay; field in class:ThreadTest.YieldThread
58 delay = d;
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DFileIOInterruptTest.java481 delay(100);
485 delay(100);
520 delay(500);
569 delay(100);
573 delay(100);
621 delay(500);
708 private static void delay(int millis) { method in class:FileIOInterruptTest
/libcore/support/src/test/java/tests/support/
H A DSupport_TestWebServer.java72 /* Minimum delay before sending each response */
180 * Call this to introduce a minimum delay before server responds to requests. When this value is
181 * not set, no delay will be introduced.
182 * @param delay The delay in milliseconds
184 public void setDelay(int delay) { argument
185 mDelay = delay;
318 /* Optional delay before sending response */
319 private int delay = 0; field in class:Support_TestWebServer.Worker
330 Worker setDelay(int delay) { argument
[all...]
/libcore/jsr166-tests/src/test/java/jsr166/
H A DJSR166TestCase.java194 systemPropertyValue("jsr166.delay.factor", 1.0f);
578 * Returns the shortest timed delay. This can be scaled up for
579 * slow machines using the jsr166.delay.factor system property,
833 * Delays, via Thread.sleep, for the given millisecond delay, but
838 static void delay(long millis) throws InterruptedException { method in class:JSR166TestCase
981 * millisecond delay of {@code timeoutMillis()}.
988 * Checks that thread does not terminate within the given millisecond delay.
993 delay(millis);
1002 * millisecond delay of {@code timeoutMillis()}.
1009 * Checks that the threads do not terminate within the given millisecond delay
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DR.java1514 public static final int delay = 0; field in class:R

Completed in 286 milliseconds