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.27 by tim, Sat Dec 6 04:31:03 2003 UTC vs.
Revision 1.28 by tim, Sun Dec 7 14:57:46 2003 UTC

# Line 45 | Line 45 | public class Executors {
45       * ScheduleExecutor methods of a ScheduledThreadPoolExecutor.
46       */
47      private static class DelegatedScheduledExecutorService
48 <            extends DelegatedExecutorService implements ScheduledExecutor {
48 >            extends DelegatedExecutorService
49 >            implements ScheduledExecutorService {
50          private final ScheduledExecutor e;
51 <        DelegatedScheduledExecutorService(ScheduledThreadPoolExecutor executor) {
51 >        DelegatedScheduledExecutorService(ScheduledExecutorService executor) {
52              super(executor);
53              e = executor;
54          }
# Line 180 | Line 181 | public class Executors {
181       * @return a <tt>ScheduledExecutor</tt> that may safely be cast to
182       * an <tt>ExecutorService</tt>.
183       */
184 <    public static ScheduledExecutor newScheduledThreadPool() {
184 >    public static ScheduledExecutorService newScheduledThreadPool() {
185          return newScheduledThreadPool(1);
186      }
187      
# Line 192 | Line 193 | public class Executors {
193       * @return a <tt>ScheduledExecutor</tt> that may safely be cast to
194       * an <tt>ExecutorService</tt>.
195       */
196 <    public static ScheduledExecutor newScheduledThreadPool(int corePoolSize) {
196 >    public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize) {
197          return new DelegatedScheduledExecutorService
198              (new ScheduledThreadPoolExecutor(corePoolSize));
199      }
# Line 207 | Line 208 | public class Executors {
208       * @return a <tt>ScheduledExecutor</tt> that may safely be cast to
209       * an <tt>ExecutorService</tt>.
210       */
211 <    public static ScheduledExecutor newScheduledThreadPool(int corePoolSize,
212 <                                                           ThreadFactory threadFactory) {
211 >    public static ScheduledExecutorService newScheduledThreadPool(
212 >            int corePoolSize, ThreadFactory threadFactory) {
213          return new DelegatedScheduledExecutorService
214              (new ScheduledThreadPoolExecutor(corePoolSize, threadFactory));
215      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines