ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/Executors.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/Executors.java (file contents):
Revision 1.11 by jozart, Wed Jun 18 10:18:36 2003 UTC vs.
Revision 1.12 by dl, Tue Jun 24 14:34:48 2003 UTC

# Line 19 | Line 19 | import java.util.*;
19   * @spec JSR-166
20   * @revised $Date$
21   * @editor $Author$
22 + * @author Doug Lea
23   */
24   public class Executors {
25  
# Line 60 | Line 61 | public class Executors {
61       * ThreadFactory to create new threads when needed.
62       *
63       * @param nThreads the number of threads in the pool
64 <     * @param threadfactory the factory to use when creating new threads
64 >     * @param threadFactory the factory to use when creating new threads
65       * @return the newly created thread pool
66       */
67      public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) {
# Line 93 | Line 94 | public class Executors {
94       * Creates an Executor that uses a single worker thread operating
95       * off an unbounded queue, and uses the provided ThreadFactory to
96       * create new threads when needed.
97 <     * @param threadfactory the factory to use when creating new
97 >     * @param threadFactory the factory to use when creating new
98       * threads
99       *
100       * @return the newly-created single-threaded Executor
# Line 132 | Line 133 | public class Executors {
133       * will reuse previously constructed threads when they are
134       * available, and uses the provided
135       * ThreadFactory to create new threads when needed.
136 <     * @param threadfactory the factory to use when creating new threads
136 >     * @param threadFactory the factory to use when creating new threads
137       * @return the newly created thread pool
138       */
139      public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory) {
# Line 202 | Line 203 | public class Executors {
203       * @return a Future representing pending completion of the task
204       * @throws RejectedExecutionException if task cannot be scheduled
205       * for execution
206 +     * @throws InterruptedException if interrupted while waiting for
207 +     * completion
208       */
209      public static <T> T invoke(Executor executor, Callable<T> task)
210              throws ExecutionException, InterruptedException {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines