Home | History | Annotate | Download | only in concurrent

Lines Matching refs:runnable

31  * guarantees that every {@code Runnable} that is {@linkplain #add added} will
32 * be executed after {@link #execute()} is called. Any {@code Runnable} added
52 * The runnable, executor pairs to execute. This acts as a stack threaded through the
64 * Adds the {@code Runnable} and accompanying {@code Executor} to the list of
81 public void add(Runnable runnable, Executor executor) {
85 Preconditions.checkNotNull(runnable, "Runnable was null.");
93 runnables = new RunnableExecutorPair(runnable, executor, runnables);
97 // Execute the runnable immediately. Because of scheduling this may end up
101 executeListener(runnable, executor);
145 executeListener(reversedList.runnable, reversedList.executor);
151 * Submits the given runnable to the given {@link Executor} catching and logging all
154 private static void executeListener(Runnable runnable, Executor executor) {
156 executor.execute(runnable);
158 // Log it and keep going, bad runnable and/or executor. Don't
161 log.log(Level.SEVERE, "RuntimeException while executing runnable "
162 + runnable + " with executor " + executor, e);
167 final Runnable runnable;
171 RunnableExecutorPair(Runnable runnable, Executor executor, RunnableExecutorPair next) {
172 this.runnable = runnable;