Home | History | Annotate | Download | only in concurrent

Lines Matching defs:Executor

42  * use, scheduling, etc.  An {@code Executor} is normally used
48 * Executor executor = anExecutor();
49 * executor.execute(new RunnableTask1());
50 * executor.execute(new RunnableTask2());
53 * However, the {@code Executor} interface does not strictly require
54 * that execution be asynchronous. In the simplest case, an executor
58 * class DirectExecutor implements Executor {
65 * caller's thread. The executor below spawns a new thread for each
69 * class ThreadPerTaskExecutor implements Executor {
75 * Many {@code Executor} implementations impose some sort of
76 * limitation on how and when tasks are scheduled. The executor below
77 * serializes the submission of tasks to a second executor,
78 * illustrating a composite executor.
81 * class SerialExecutor implements Executor {
83 * final Executor executor;
86 * SerialExecutor(Executor executor) {
87 * this.executor = executor;
107 * executor.execute(active);
112 * The {@code Executor} implementations provided in this package
119 * submitting a {@code Runnable} object to an {@code Executor}
126 public interface Executor {
131 * thread, at the discretion of the {@code Executor} implementation.