Lines Matching refs:command
524 public ScheduledFuture<?> schedule(Runnable command,
527 if (command == null || unit == null)
529 RunnableScheduledFuture<Void> t = decorateTask(command,
530 new ScheduledFutureTask<Void>(command, null,
559 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command,
563 if (command == null || unit == null)
568 new ScheduledFutureTask<Void>(command,
573 RunnableScheduledFuture<Void> t = decorateTask(command, sft);
584 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command,
588 if (command == null || unit == null)
593 new ScheduledFutureTask<Void>(command,
598 RunnableScheduledFuture<Void> t = decorateTask(command, sft);
605 * Executes {@code command} with zero required delay.
607 * {@link #schedule(Runnable,long,TimeUnit) schedule(command, 0, anyUnit)}.
610 * {@link ScheduledFuture}, not the {@code command} itself.
615 * {@code command} terminated abruptly. Instead, the {@code Throwable}
624 public void execute(Runnable command) {
625 schedule(command, 0, NANOSECONDS);