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.36 by dl, Wed Dec 17 17:00:24 2003 UTC vs.
Revision 1.37 by dl, Fri Dec 19 14:42:25 2003 UTC

# Line 76 | Line 76 | public class Executors {
76      /**
77       * Creates an Executor that uses a single worker thread operating
78       * off an unbounded queue, and uses the provided ThreadFactory to
79 <     * create a new thread when needed. The returned executor cannot be
80 <     * reconfigured to use additional threads.
79 >     * create a new thread when needed. Unlike the otherwise
80 >     * equivalent <tt>newFixedThreadPool(1)</tt> the returned executor
81 >     * is guaranteed not to be reconfigurable to use additional
82 >     * threads.
83 >     *
84       * @param threadFactory the factory to use when creating new
85       * threads
86       *
# Line 310 | Line 313 | public class Executors {
313       * A wrapper class that exposes only the ExecutorService methods
314       * of an implementation.
315       */
316 <    private static class DelegatedExecutorService extends AbstractExecutorService {
316 >    static class DelegatedExecutorService extends AbstractExecutorService {
317          private final ExecutorService e;
318          DelegatedExecutorService(ExecutorService executor) { e = executor; }
319          public void execute(Runnable command) { e.execute(command); }
# Line 383 | Line 386 | public class Executors {
386       * A wrapper class that exposes only the ExecutorService and
387       * ScheduleExecutor methods of a ScheduledThreadPoolExecutor.
388       */
389 <    private static class DelegatedScheduledExecutorService
389 >    static class DelegatedScheduledExecutorService
390              extends DelegatedExecutorService
391              implements ScheduledExecutorService {
392          private final ScheduledExecutorService e;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines