ThreadPoolExecutor
executes parallelized tasks across multiple different threads of a thread pool.
To execute work concurrently and retain control over how the work is executed, this is the tool for the job.
- constructing a new instance
- confgure the many arguments of the thread pool
- if initializing ThreadPoolExecutor in a service, ensure to create it within
onStartCommand()
notonCreate()