jedis
jedis copied to clipboard
Introduce thread pool for multi node pipeline
This PR mainly includes the following changes:
- Introduce JedisThreadFactoryBuilder and JedisThreadPoolBuilder to standardize the creation of thread pools (this is beneficial for future debugging).
- make executorService as a static object, created by default (even if the user does not use MultiNodePipeline), this can be recycled by multiple pipelines instead of frequent resource creation and destruction.
- Users can customize the executor through
setExecutorService
. - submit method catch reject exception and record.