Creates a new {@code ScheduledThreadPoolExecutor} with the
given initial parameters.
@param corePoolSize the number of threads to keep in the pool, even
if they are idle, unless {@code allowCoreThreadTimeOut} is set
@param threadFactory the factory to use when the executor
creates a new thread
@param handler the handler to use when execution is blocked
because the thread bounds and queue capacities are reached
@throws IllegalArgumentException if {@code corePoolSize < 0}
@throws NullPointerException if {@code threadFactory} or
{@code handler} is null
Creates a new {@code ScheduledThreadPoolExecutor} with the given initial parameters.
@param corePoolSize the number of threads to keep in the pool, even if they are idle, unless {@code allowCoreThreadTimeOut} is set @param threadFactory the factory to use when the executor creates a new thread @param handler the handler to use when execution is blocked because the thread bounds and queue capacities are reached @throws IllegalArgumentException if {@code corePoolSize < 0} @throws NullPointerException if {@code threadFactory} or {@code handler} is null