292 |
|
* |
293 |
|
* @param corePoolSize the number of threads to keep in the pool, |
294 |
|
* even if they are idle |
295 |
< |
* @throws IllegalArgumentException if <tt>corePoolSize <= 0</tt> |
295 |
> |
* @throws IllegalArgumentException if <tt>corePoolSize < 0</tt> |
296 |
|
*/ |
297 |
|
public ScheduledThreadPoolExecutor(int corePoolSize) { |
298 |
|
super(corePoolSize, Integer.MAX_VALUE, 0, TimeUnit.NANOSECONDS, |
307 |
|
* even if they are idle |
308 |
|
* @param threadFactory the factory to use when the executor |
309 |
|
* creates a new thread |
310 |
< |
* @throws IllegalArgumentException if <tt>corePoolSize <= 0</tt> |
310 |
> |
* @throws IllegalArgumentException if <tt>corePoolSize < 0</tt> |
311 |
|
* @throws NullPointerException if threadFactory is null |
312 |
|
*/ |
313 |
|
public ScheduledThreadPoolExecutor(int corePoolSize, |
324 |
|
* even if they are idle |
325 |
|
* @param handler the handler to use when execution is blocked |
326 |
|
* because the thread bounds and queue capacities are reached |
327 |
< |
* @throws IllegalArgumentException if <tt>corePoolSize <= 0</tt> |
327 |
> |
* @throws IllegalArgumentException if <tt>corePoolSize < 0</tt> |
328 |
|
* @throws NullPointerException if handler is null |
329 |
|
*/ |
330 |
|
public ScheduledThreadPoolExecutor(int corePoolSize, |
343 |
|
* creates a new thread |
344 |
|
* @param handler the handler to use when execution is blocked |
345 |
|
* because the thread bounds and queue capacities are reached. |
346 |
< |
* @throws IllegalArgumentException if <tt>corePoolSize <= 0</tt> |
346 |
> |
* @throws IllegalArgumentException if <tt>corePoolSize < 0</tt> |
347 |
|
* @throws NullPointerException if threadFactory or handler is null |
348 |
|
*/ |
349 |
|
public ScheduledThreadPoolExecutor(int corePoolSize, |