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
@throws IllegalArgumentException if {@code corePoolSize < 0}
@throws NullPointerException if {@code threadFactory} 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 @throws IllegalArgumentException if {@code corePoolSize < 0} @throws NullPointerException if {@code threadFactory} is null