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 |
|
|
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; |
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) |