/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | ScheduledExecutorService.java | 40 * 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 D | Executors.java | 247 * to run after a given delay, or to execute periodically. 265 * to run after a given delay, or to execute periodically. (Note 286 * given delay, or to execute periodically. 298 * given delay, or to execute periodically. 684 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { argument 685 return e.schedule(command, delay, unit); 687 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { argument 688 return e.schedule(callable, delay, unit); 693 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) { argument 694 return e.scheduleWithFixedDelay(command, initialDelay, delay, uni [all...] |
H A D | ScheduledThreadPoolExecutor.java | 57 * 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 D | CompletableFuture.java | 2526 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 D | OldThreadTest.java | 29 int delay; field in class:OldThreadTest.SimpleThread 35 this.wait(delay); 45 delay = d;
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Timer.java | 40 * turn, delay the execution of subsequent tasks, which may "bunch up" and 69 * executing tasks at a given rate or delay. It is effectively a more 187 * Schedules the specified task for execution after the specified delay. 190 * @param delay delay in milliseconds before task is to be executed. 191 * @throws IllegalArgumentException if <tt>delay</tt> is negative, or 192 * <tt>delay + System.currentTimeMillis()</tt> is negative. 197 public void schedule(TimerTask task, long delay) { argument 198 if (delay < 0) 199 throw new IllegalArgumentException("Negative delay 250 schedule(TimerTask task, long delay, long period) argument 330 scheduleAtFixedRate(TimerTask task, long delay, long period) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | ThreadTest.java | 26 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 D | FileIOInterruptTest.java | 481 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 D | Support_TestWebServer.java | 72 /* 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 D | JSR166TestCase.java | 194 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 D | R.java | 1514 public static final int delay = 0; field in class:R
|