Creates a thread pool that can schedule commands to run after a given delay, or to execute periodically.
corePoolSize | the number of threads to keep in the pool, even if they are idle | |
threadFactory | the factory to use when the executor creates a new thread |
IllegalArgumentException | if corePoolSize < 0 | |
NullPointerException | if threadFactory is null |
Diagram: Executors