jedis icon indicating copy to clipboard operation
jedis copied to clipboard

Introduce thread pool for multi node pipeline

Open yangbodong22011 opened this issue 1 year ago • 12 comments

This PR mainly includes the following changes:

  1. Introduce JedisThreadFactoryBuilder and JedisThreadPoolBuilder to standardize the creation of thread pools (this is beneficial for future debugging).
  2. 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.
  3. Users can customize the executor through setExecutorService.
  4. submit method catch reject exception and record.

yangbodong22011 avatar Mar 29 '23 08:03 yangbodong22011