407 |
|
* @throws NullPointerException if {@code threadFactory} is null |
408 |
|
*/ |
409 |
|
public ScheduledThreadPoolExecutor(int corePoolSize, |
410 |
< |
ThreadFactory threadFactory) { |
410 |
> |
ThreadFactory threadFactory) { |
411 |
|
super(corePoolSize, Integer.MAX_VALUE, 0, TimeUnit.NANOSECONDS, |
412 |
|
new DelayedWorkQueue(), threadFactory); |
413 |
|
} |
424 |
|
* @throws NullPointerException if {@code handler} is null |
425 |
|
*/ |
426 |
|
public ScheduledThreadPoolExecutor(int corePoolSize, |
427 |
< |
RejectedExecutionHandler handler) { |
427 |
> |
RejectedExecutionHandler handler) { |
428 |
|
super(corePoolSize, Integer.MAX_VALUE, 0, TimeUnit.NANOSECONDS, |
429 |
|
new DelayedWorkQueue(), handler); |
430 |
|
} |
444 |
|
* {@code handler} is null |
445 |
|
*/ |
446 |
|
public ScheduledThreadPoolExecutor(int corePoolSize, |
447 |
< |
ThreadFactory threadFactory, |
448 |
< |
RejectedExecutionHandler handler) { |
447 |
> |
ThreadFactory threadFactory, |
448 |
> |
RejectedExecutionHandler handler) { |
449 |
|
super(corePoolSize, Integer.MAX_VALUE, 0, TimeUnit.NANOSECONDS, |
450 |
|
new DelayedWorkQueue(), threadFactory, handler); |
451 |
|
} |