Searched defs:unit (Results 1 - 25 of 39) 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.java129 * @param unit the time unit of the timeout argument
138 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
97 long delay, TimeUnit unit);
115 * @param unit the time unit of the initialDelay and period parameters
127 TimeUnit unit);
142 * @param unit th
81 schedule(Runnable command, long delay, TimeUnit unit) argument
96 schedule(Callable<V> callable, long delay, TimeUnit unit) argument
124 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument
151 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 DAbstractExecutorService.java192 long timeout, TimeUnit unit)
194 return doInvokeAny(tasks, true, unit.toNanos(timeout));
229 long timeout, TimeUnit unit)
233 long nanos = unit.toNanos(timeout);
191 invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
228 invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
H A DBlockingQueue.java45 * <td>{@link #offer(Object, long, TimeUnit) offer(e, time, unit)}</td>
52 * <td>{@link #poll(long, TimeUnit) poll(time, unit)}</td>
211 * {@code unit}
212 * @param unit a {@code TimeUnit} determining how to interpret the
223 boolean offer(E e, long timeout, TimeUnit unit) argument
240 * {@code unit}
241 * @param unit a {@code TimeUnit} determining how to interpret the
247 E poll(long timeout, TimeUnit unit) argument
H A DCountDownLatch.java240 * @param unit the time unit of the {@code timeout} argument
246 public boolean await(long timeout, TimeUnit unit) argument
248 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout));
H A DExecutorCompletionService.java171 public Future<V> poll(long timeout, TimeUnit unit) argument
173 return completionQueue.poll(timeout, unit);
H A DExecutorService.java165 * @param unit the time unit of the timeout argument
170 boolean awaitTermination(long timeout, TimeUnit unit) argument
261 * @param unit the time unit of the timeout argument
270 * unit are {@code null}
275 long timeout, TimeUnit unit)
310 * @param unit the time unit of the timeout argument
313 * @throws NullPointerException if tasks, or unit, o
274 invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
321 invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
[all...]
H A DCyclicBarrier.java384 * @param unit the time unit of the timeout parameter
397 public int await(long timeout, TimeUnit unit) argument
401 return dowait(true, unit.toNanos(timeout));
H A DBlockingDeque.java41 * <td>{@link #offerFirst(Object, long, TimeUnit) offerFirst(e, time, unit)}</td>
48 * <td>{@link #pollFirst(long, TimeUnit) pollFirst(time, unit)}</td>
72 * <td>{@link #offerLast(Object, long, TimeUnit) offerLast(e, time, unit)}</td>
79 * <td>{@link #pollLast(long, TimeUnit) pollLast(time, unit)}</td>
121 * <td>{@link #offer(Object, long, TimeUnit) offer(e, time, unit)}</td>
122 * <td>{@link #offerLast(Object, long, TimeUnit) offerLast(e, time, unit)}</td>
140 * <td>{@link #poll(long, TimeUnit) poll(time, unit)}</td>
141 * <td>{@link #pollFirst(long, TimeUnit) pollFirst(time, unit)}</td>
276 * {@code unit}
277 * @param unit
288 offerFirst(E e, long timeout, TimeUnit unit) argument
310 offerLast(E e, long timeout, TimeUnit unit) argument
344 pollFirst(long timeout, TimeUnit unit) argument
360 pollLast(long timeout, TimeUnit unit) argument
477 offer(E e, long timeout, TimeUnit unit) argument
528 poll(long timeout, TimeUnit unit) argument
[all...]
H A DDelayQueue.java139 * @param unit This parameter is ignored as the method never blocks
143 public boolean offer(E e, long timeout, TimeUnit unit) { argument
219 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument
220 long nanos = unit.toNanos(timeout);
H A DSemaphore.java373 * @param unit the time unit of the {@code timeout} argument
378 public boolean tryAcquire(long timeout, TimeUnit unit) argument
380 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout));
544 * @param unit the time unit of the {@code timeout} argument
550 public boolean tryAcquire(int permits, long timeout, TimeUnit unit) argument
553 return sync.tryAcquireSharedNanos(permits, unit.toNanos(timeout));
H A DExecutors.java588 public boolean awaitTermination(long timeout, TimeUnit unit) argument
590 return e.awaitTermination(timeout, unit);
606 long timeout, TimeUnit unit)
608 return e.invokeAll(tasks, timeout, unit);
615 long timeout, TimeUnit unit)
617 return e.invokeAny(tasks, timeout, unit);
643 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { argument
644 return e.schedule(command, delay, unit);
646 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { argument
647 return e.schedule(callable, delay, unit);
605 invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
614 invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
649 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument
652 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument
[all...]
H A DFutureTask.java169 public V get(long timeout, TimeUnit unit) argument
171 if (unit == null)
175 (s = awaitDone(true, unit.toNanos(timeout))) <= COMPLETING)
H A DLinkedBlockingQueue.java340 public boolean offer(E e, long timeout, TimeUnit unit) argument
344 long nanos = unit.toNanos(timeout);
424 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument
427 long nanos = unit.toNanos(timeout);
H A DPriorityBlockingQueue.java482 * @param unit This parameter is ignored as the method never blocks
490 public boolean offer(E e, long timeout, TimeUnit unit) { argument
517 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument
518 long nanos = unit.toNanos(timeout);
H A DExchanger.java127 * generally, the same coherence unit). Because, as of this
580 * @param unit the time unit of the {@code timeout} argument
588 public V exchange(V x, long timeout, TimeUnit unit) argument
592 long ns = unit.toNanos(timeout);
H A DLinkedBlockingDeque.java374 public boolean offerFirst(E e, long timeout, TimeUnit unit) argument
378 long nanos = unit.toNanos(timeout);
397 public boolean offerLast(E e, long timeout, TimeUnit unit) argument
401 long nanos = unit.toNanos(timeout);
480 public E pollFirst(long timeout, TimeUnit unit) argument
482 long nanos = unit.toNanos(timeout);
498 public E pollLast(long timeout, TimeUnit unit) argument
500 long nanos = unit.toNanos(timeout);
625 public boolean offer(E e, long timeout, TimeUnit unit) argument
627 return offerLast(e, timeout, unit);
652 poll(long timeout, TimeUnit unit) argument
[all...]
/libcore/luni/src/main/java/java/util/concurrent/locks/
H A DCondition.java283 * boolean aMethod(long timeout, TimeUnit unit) {
284 * long nanos = unit.toNanos(timeout);
335 * <pre> {@code awaitNanos(unit.toNanos(time)) > 0}</pre>
338 * @param unit the time unit of the {@code time} argument
344 boolean await(long time, TimeUnit unit) throws InterruptedException; argument
H A DLock.java284 * @param unit the time unit of the {@code time} argument
292 boolean tryLock(long time, TimeUnit unit) throws InterruptedException; argument
H A DReentrantLock.java354 * lock.tryLock(timeout, unit)) {
403 * @param unit the time unit of the timeout argument
409 * @throws NullPointerException if the time unit is null
411 public boolean tryLock(long timeout, TimeUnit unit) argument
413 return sync.tryAcquireNanos(1, unit.toNanos(timeout));
/libcore/jsr166-tests/src/test/java/jsr166/
H A DAbstractExecutorServiceTest.java33 public boolean awaitTermination(long timeout, TimeUnit unit) { argument
400 * timed invokeAny(null time unit) throws NPE
495 * timed invokeAll(null time unit) throws NPE
H A DDelayQueueTest.java97 public long getDelay(TimeUnit unit) { argument
99 return unit.convert(n, TimeUnit.NANOSECONDS);

Completed in 182 milliseconds

12