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

Comparing jsr166/src/main/java/util/concurrent/ThreadPoolExecutor.java (file contents):
Revision 1.71 by jsr166, Sat May 28 15:08:20 2005 UTC vs.
Revision 1.72 by jsr166, Fri Jun 24 20:44:49 2005 UTC

# Line 5 | Line 5
5   */
6  
7   package java.util.concurrent;
8 + import java.util.concurrent.*; // for javadoc (till 6280605 is fixed)
9   import java.util.concurrent.locks.*;
10   import java.util.*;
11  
# Line 1245 | Line 1246 | public class ThreadPoolExecutor extends
1246       * terminated due to lack of incoming tasks.
1247       * @return <tt>true</tt> if core threads are allowed to time out,
1248       * else <tt>false</tt>
1249 +     *
1250 +     * @since 1.6
1251       */
1252      public boolean allowsCoreThreadTimeOut() {
1253          return allowCoreThreadTimeOut;
# Line 1263 | Line 1266 | public class ThreadPoolExecutor extends
1266       * @param value <tt>true</tt> if should time out, else <tt>false</tt>
1267       * @throws IllegalArgumentException if value is <tt>true</tt>
1268       * and the current keep-alive time is not greater than zero.
1269 +     *
1270 +     * @since 1.6
1271       */
1272      public void allowCoreThreadTimeOut(boolean value) {
1273          if (value && keepAliveTime <= 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines