/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 | 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 | DelayQueue.java | 55 * when its delay has expired. The <em>head</em> of the queue is that 56 * {@code Delayed} element whose delay expired furthest in the 57 * past. If no delay has expired there is no head and {@code poll} 87 * the leader, it waits only for the next delay to elapse, but 125 * Inserts the specified element into this delay queue. 136 * Inserts the specified element into this delay queue. 158 * Inserts the specified element into this delay queue. As the queue is 169 * Inserts the specified element into this delay queue. As the queue is 184 * if this queue has no elements with an expired delay. 187 * queue has no elements with an expired delay [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 | 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/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/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...] |
H A D | ScheduledExecutorSubclassTest.java | 121 * delayed schedule of callable successfully executes after delay 141 * delayed schedule of runnable successfully executes after delay 161 * scheduleAtFixedRate executes runnable after given initial delay 183 * scheduleWithFixedDelay executes runnable after given initial delay 212 * cycles - 1 <= elapsedMillis/delay < cycles 217 for (int delay = 1; delay <= LONG_DELAY_MS; delay *= 3) { 224 p.scheduleAtFixedRate(task, 0, delay, MILLISECONDS); 225 final int totalDelayMillis = (cycles - 1) * delay; [all...] |
H A D | ScheduledExecutorTest.java | 64 * delayed schedule of callable successfully executes after delay 85 * delayed schedule of runnable successfully executes after delay 105 * scheduleAtFixedRate executes runnable after given initial delay 127 * scheduleWithFixedDelay executes runnable after given initial delay 156 * cycles - 1 <= elapsedMillis/delay < cycles 161 for (int delay = 1; delay <= LONG_DELAY_MS; delay *= 3) { 168 p.scheduleAtFixedRate(task, 0, delay, MILLISECONDS); 169 final int totalDelayMillis = (cycles - 1) * delay; [all...] |
H A D | FutureTaskTest.java | 422 delay(LONG_DELAY_MS); 496 delay(LONG_DELAY_MS); 639 delay(2*LONG_DELAY_MS);
|
H A D | CyclicBarrierTest.java | 322 delay(timeoutMillis());
|
H A D | ExecutorsTest.java | 286 delay(LONG_DELAY_MS);
|
H A D | ThreadPoolExecutorSubclassTest.java | 1970 delay(keepAliveTime); 1997 delay(2 * keepAliveTime);
|
H A D | ThreadPoolExecutorTest.java | 1977 delay(keepAliveTime); 2004 delay(2 * keepAliveTime);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | ObjectTest.java | 293 final int delay = 200; // milliseconds 300 obj1.wait(delay, 0); 302 long error = (after - before - delay); 313 if (error > (1000 + delay) || count == toLong.length) {
|
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/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/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/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | ServerSocketTest.java | 248 int delay = (int) (finish.getTime() - start.getTime()); 249 assertTrue("timeout too soon: " + delay + " " + start.getTime() 250 + " " + finish.getTime(), delay >= 490);
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | Thread.java | 1266 long delay = millis - now; 1267 if (delay <= 0) { 1270 lock.wait(delay); 2188 * calculated the delay, the wall clock gets moved ahead,
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | R.java | 1514 public static final int delay = 0; field in class:R
|