279 |
|
* |
280 |
|
* @param corePoolSize the number of threads to keep in the pool, |
281 |
|
* even if they are idle. |
282 |
< |
* @throws IllegalArgumentException if corePoolSize less than or |
283 |
< |
* equal to zero |
282 |
> |
* @throws IllegalArgumentException if <tt>corePoolSize <= 0</tt> |
283 |
|
*/ |
284 |
|
public ScheduledThreadPoolExecutor(int corePoolSize) { |
285 |
|
super(corePoolSize, Integer.MAX_VALUE, 0, TimeUnit.NANOSECONDS, |
294 |
|
* even if they are idle. |
295 |
|
* @param threadFactory the factory to use when the executor |
296 |
|
* creates a new thread. |
297 |
+ |
* @throws IllegalArgumentException if <tt>corePoolSize <= 0</tt> |
298 |
|
* @throws NullPointerException if threadFactory is null |
299 |
|
*/ |
300 |
|
public ScheduledThreadPoolExecutor(int corePoolSize, |
311 |
|
* even if they are idle. |
312 |
|
* @param handler the handler to use when execution is blocked |
313 |
|
* because the thread bounds and queue capacities are reached. |
314 |
+ |
* @throws IllegalArgumentException if <tt>corePoolSize <= 0</tt> |
315 |
|
* @throws NullPointerException if handler is null |
316 |
|
*/ |
317 |
|
public ScheduledThreadPoolExecutor(int corePoolSize, |
330 |
|
* creates a new thread. |
331 |
|
* @param handler the handler to use when execution is blocked |
332 |
|
* because the thread bounds and queue capacities are reached. |
333 |
+ |
* @throws IllegalArgumentException if <tt>corePoolSize <= 0</tt> |
334 |
|
* @throws NullPointerException if threadFactory or handler is null |
335 |
|
*/ |
336 |
|
public ScheduledThreadPoolExecutor(int corePoolSize, |