Lines Matching refs:unit

1900      * @param unit the time unit of the timeout argument
1908 public T get(long timeout, TimeUnit unit)
1911 long nanos = unit.toNanos(timeout);
2485 * with a TimeoutException, in units of {@code unit}
2486 * @param unit a {@code TimeUnit} determining how to interpret the
2493 public CompletableFuture<T> orTimeout(long timeout, TimeUnit unit) {
2494 if (unit == null)
2498 timeout, unit)));
2508 * with the given value, in units of {@code unit}
2509 * @param unit a {@code TimeUnit} determining how to interpret the
2517 TimeUnit unit) {
2518 if (unit == null)
2523 timeout, unit)));
2533 * @param delay how long to delay, in units of {@code unit}
2534 * @param unit a {@code TimeUnit} determining how to interpret the
2542 public static Executor delayedExecutor(long delay, TimeUnit unit,
2544 if (unit == null || executor == null)
2546 return new DelayedExecutor(delay, unit, executor);
2555 * @param delay how long to delay, in units of {@code unit}
2556 * @param unit a {@code TimeUnit} determining how to interpret the
2563 public static Executor delayedExecutor(long delay, TimeUnit unit) {
2564 if (unit == null)
2566 return new DelayedExecutor(delay, unit, ASYNC_POOL);
2624 TimeUnit unit) {
2625 return delayer.schedule(command, delay, unit);
2649 final TimeUnit unit;
2651 DelayedExecutor(long delay, TimeUnit unit, Executor executor) {
2652 this.delay = delay; this.unit = unit; this.executor = executor;
2655 Delayer.delay(new TaskSubmitter(executor, r), delay, unit);
2711 @Override public T get(long timeout, TimeUnit unit) {
2742 (long timeout, TimeUnit unit) {
2745 (T value, long timeout, TimeUnit unit) {