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 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 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 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 handler} is null