Home | History | Annotate | Download | only in concurrent

Lines Matching refs:Executor

23 import java.util.concurrent.Executor;
28 * <p>A list of ({@code Runnable}, {@code Executor}) pairs that guarantees
30 * executed in its associated {@code Executor} after {@link #run()} is called.
44 // The list of runnable,executor pairs to execute. Only modified within
53 * Add the runnable/executor pair to the list of pairs to execute. Executes
56 public void add(Runnable runnable, Executor executor) {
59 // Executor states that it throws NPE on null listener, so we propagate
62 Preconditions.checkNotNull(executor, "Executor was null.");
71 runnables.add(new RunnableExecutorPair(runnable, executor));
82 executor.execute(runnable);
108 final Executor executor;
110 RunnableExecutorPair(Runnable runnable, Executor executor) {
112 this.executor = executor;
117 executor.execute(runnable);
119 // Log it and keep going, bad runnable and/or executor. Don't
123 + runnable + " with executor " + executor, e);