/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | Delayed.java | 24 * given time unit. 26 * @param unit the time unit 30 long getDelay(TimeUnit unit); argument
|
H A D | CompletionService.java | 86 * {@code unit} 87 * @param unit a {@code TimeUnit} determining how to interpret the 94 Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException; argument
|
H A D | Future.java | 130 * @param unit the time unit of the timeout argument 139 V get(long timeout, TimeUnit unit) argument
|
H A D | ScheduledExecutorService.java | 73 * @param unit the time unit of the delay parameter 82 long delay, TimeUnit unit); 90 * @param unit the time unit of the delay parameter 98 long delay, TimeUnit unit); 128 * @param unit the time unit of the initialDelay and period parameters 142 TimeUnit unit); 168 * @param unit th 81 schedule(Runnable command, long delay, TimeUnit unit) argument 97 schedule(Callable<V> callable, long delay, TimeUnit unit) argument 139 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument 179 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument [all...] |
H A D | TransferQueue.java | 91 * {@code unit} 92 * @param unit a {@code TimeUnit} determining how to interpret the 105 boolean tryTransfer(E e, long timeout, TimeUnit unit) argument
|
H A D | BlockingQueue.java | 46 * <td>{@link #offer(Object, long, TimeUnit) offer(e, time, unit)}</td> 53 * <td>{@link #poll(long, TimeUnit) poll(time, unit)}</td> 212 * {@code unit} 213 * @param unit a {@code TimeUnit} determining how to interpret the 224 boolean offer(E e, long timeout, TimeUnit unit) argument 241 * {@code unit} 242 * @param unit a {@code TimeUnit} determining how to interpret the 248 E poll(long timeout, TimeUnit unit) argument
|
H A D | CountDownLatch.java | 241 * @param unit the time unit of the {@code timeout} argument 247 public boolean await(long timeout, TimeUnit unit) argument 249 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout));
|
H A D | ExecutorCompletionService.java | 173 public Future<V> poll(long timeout, TimeUnit unit) argument 175 return completionQueue.poll(timeout, unit);
|
H A D | ExecutorService.java | 166 * @param unit the time unit of the timeout argument 171 boolean awaitTermination(long timeout, TimeUnit unit) argument 265 * @param unit the time unit of the timeout argument 275 * unit are {@code null} 280 long timeout, TimeUnit unit) 316 * @param unit the time unit of the timeout argument 320 * @throws NullPointerException if tasks, or unit, o 279 invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument 328 invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument [all...] |
H A D | AbstractExecutorService.java | 199 long timeout, TimeUnit unit) 201 return doInvokeAny(tasks, true, unit.toNanos(timeout)); 231 long timeout, TimeUnit unit) 235 final long nanos = unit.toNanos(timeout); 198 invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument 230 invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
|
H A D | CyclicBarrier.java | 389 * @param unit the time unit of the timeout parameter 403 public int await(long timeout, TimeUnit unit) argument 407 return dowait(true, unit.toNanos(timeout));
|
H A D | BlockingDeque.java | 48 * <td>{@link #offerFirst(Object, long, TimeUnit) offerFirst(e, time, unit)}</td> 55 * <td>{@link #pollFirst(long, TimeUnit) pollFirst(time, unit)}</td> 79 * <td>{@link #offerLast(Object, long, TimeUnit) offerLast(e, time, unit)}</td> 86 * <td>{@link #pollLast(long, TimeUnit) pollLast(time, unit)}</td> 128 * <td>{@link #offer(Object, long, TimeUnit) offer(e, time, unit)}</td> 129 * <td>{@link #offerLast(Object, long, TimeUnit) offerLast(e, time, unit)}</td> 147 * <td>{@link #poll(long, TimeUnit) poll(time, unit)}</td> 148 * <td>{@link #pollFirst(long, TimeUnit) pollFirst(time, unit)}</td> 283 * {@code unit} 284 * @param unit 295 offerFirst(E e, long timeout, TimeUnit unit) argument 317 offerLast(E e, long timeout, TimeUnit unit) argument 351 pollFirst(long timeout, TimeUnit unit) argument 367 pollLast(long timeout, TimeUnit unit) argument 484 offer(E e, long timeout, TimeUnit unit) argument 535 poll(long timeout, TimeUnit unit) argument [all...] |
H A D | DelayQueue.java | 145 * @param unit This parameter is ignored as the method never blocks 149 public boolean offer(E e, long timeout, TimeUnit unit) { argument 224 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument 225 long nanos = unit.toNanos(timeout);
|
H A D | Exchanger.java | 124 * generally, the same coherence unit). Because, as of this 575 * @param unit the time unit of the {@code timeout} argument 583 public V exchange(V x, long timeout, TimeUnit unit) argument 587 long ns = unit.toNanos(timeout);
|
H A D | Semaphore.java | 379 * @param unit the time unit of the {@code timeout} argument 384 public boolean tryAcquire(long timeout, TimeUnit unit) argument 386 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); 554 * @param unit the time unit of the {@code timeout} argument 560 public boolean tryAcquire(int permits, long timeout, TimeUnit unit) argument 563 return sync.tryAcquireSharedNanos(permits, unit.toNanos(timeout));
|
H A D | Executors.java | 596 public boolean awaitTermination(long timeout, TimeUnit unit) argument 598 return e.awaitTermination(timeout, unit); 614 long timeout, TimeUnit unit) 616 return e.invokeAll(tasks, timeout, unit); 623 long timeout, TimeUnit unit) 625 return e.invokeAny(tasks, timeout, unit); 651 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { argument 652 return e.schedule(command, delay, unit); 654 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { argument 655 return e.schedule(callable, delay, unit); 613 invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument 622 invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument 657 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument 660 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument [all...] |
H A D | FutureTask.java | 170 public V get(long timeout, TimeUnit unit) argument 172 if (unit == null) 176 (s = awaitDone(true, unit.toNanos(timeout))) <= COMPLETING)
|
H A D | LinkedBlockingQueue.java | 343 public boolean offer(E e, long timeout, TimeUnit unit) argument 347 long nanos = unit.toNanos(timeout); 427 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument 430 long nanos = unit.toNanos(timeout);
|
H A D | Phaser.java | 743 * {@code unit} 744 * @param unit a {@code TimeUnit} determining how to interpret the 753 long timeout, TimeUnit unit) 755 long nanos = unit.toNanos(timeout); 752 awaitAdvanceInterruptibly(int phase, long timeout, TimeUnit unit) argument
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
H A D | Condition.java | 284 * boolean aMethod(long timeout, TimeUnit unit) { 285 * long nanos = unit.toNanos(timeout); 336 * <pre> {@code awaitNanos(unit.toNanos(time)) > 0}</pre> 339 * @param unit the time unit of the {@code time} argument 345 boolean await(long time, TimeUnit unit) throws InterruptedException; argument
|
H A D | Lock.java | 286 * @param unit the time unit of the {@code time} argument 294 boolean tryLock(long time, TimeUnit unit) throws InterruptedException; argument
|
H A D | ReentrantLock.java | 360 * lock.tryLock(timeout, unit)) { 409 * @param unit the time unit of the timeout argument 415 * @throws NullPointerException if the time unit is null 417 public boolean tryLock(long timeout, TimeUnit unit) argument 419 return sync.tryAcquireNanos(1, unit.toNanos(timeout));
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | CompletedFuture.java | 74 public V get(long timeout, TimeUnit unit) throws ExecutionException { argument 75 if (unit == null)
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | AbstractExecutorServiceTest.java | 58 public boolean awaitTermination(long timeout, TimeUnit unit) { argument 406 * timed invokeAny(null time unit) throws NPE 500 * timed invokeAll(null time unit) throws NPE
|
H A D | DelayQueueTest.java | 121 public long getDelay(TimeUnit unit) { argument 123 return unit.convert(n, TimeUnit.NANOSECONDS);
|