Searched defs:unit (Results 1 - 25 of 42) sorted by relevance

12

/libcore/luni/src/main/java/java/util/concurrent/
H A DDelayed.java24 * given time unit.
26 * @param unit the time unit
30 long getDelay(TimeUnit unit); argument
H A DCompletionService.java86 * {@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 DFuture.java130 * @param unit the time unit of the timeout argument
139 V get(long timeout, TimeUnit unit) argument
H A DScheduledExecutorService.java73 * @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 DTransferQueue.java91 * {@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 DBlockingQueue.java46 * <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 DCountDownLatch.java241 * @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 DExecutorCompletionService.java173 public Future<V> poll(long timeout, TimeUnit unit) argument
175 return completionQueue.poll(timeout, unit);
H A DExecutorService.java166 * @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 DAbstractExecutorService.java199 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 DCyclicBarrier.java389 * @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 DBlockingDeque.java48 * <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 DDelayQueue.java145 * @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 DExchanger.java124 * 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 DSemaphore.java379 * @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 DExecutors.java596 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 DFutureTask.java170 public V get(long timeout, TimeUnit unit) argument
172 if (unit == null)
176 (s = awaitDone(true, unit.toNanos(timeout))) <= COMPLETING)
H A DLinkedBlockingQueue.java343 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 DPhaser.java743 * {@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 DCondition.java284 * 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 DLock.java286 * @param unit the time unit of the {@code time} argument
294 boolean tryLock(long time, TimeUnit unit) throws InterruptedException; argument
H A DReentrantLock.java360 * 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 DCompletedFuture.java74 public V get(long timeout, TimeUnit unit) throws ExecutionException { argument
75 if (unit == null)
/libcore/jsr166-tests/src/test/java/jsr166/
H A DAbstractExecutorServiceTest.java58 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 DDelayQueueTest.java121 public long getDelay(TimeUnit unit) { argument
123 return unit.convert(n, TimeUnit.NANOSECONDS);

Completed in 297 milliseconds

12