摘要:
一、线程池工作原理(新任务进入时线程池的执行策略)二、创建线程池的方式三、合理配置线程池四、ThreadPoolExecutor的函数说明 一、线程池工作原理(新任务进入时线程池的执行策略) 线程池的触发时机如下图: 当一个任务通过execute(Runnable)方法欲添加到线程池时: 1、如果此 阅读全文
posted @ 2021-04-01 15:29
duanxz
阅读(375)
评论(0)
推荐(0)
摘要:
背景 部分业务校验规范或疏忽场景,传入bad request 导致接口熔断,影响接口正常流量 处理 重写Feign error decoder逻辑 import com.netflix.hystrix.exception.HystrixBadRequestException; import feig 阅读全文
posted @ 2021-04-01 11:25
duanxz
阅读(515)
评论(0)
推荐(0)
浙公网安备 33010602011771号