![]() |
1
sorra 2016-11-15 17:11:13 +08:00
每种来源用一个线程池?判断系统号应该要自己写。
计数器很麻烦吧,你还要记得-1 。 |
![]() |
2
8bit 2016-11-15 17:15:51 +08:00 via Android
那直接不同系统开不同的线程池得了
|
![]() |
3
chocotan 2016-11-16 08:59:59 +08:00
hystrix 可以满足你 : )
|
![]() |
4
depress OP |
![]() |
5
chocotan 2016-11-17 09:56:49 +08:00 ![]() @depress
可以给 webservice 业务代码外面套个 HystrixCommand ,根据系统号拿到对应的线程池配置 我是这样用的: https://gist.github.com/chocotan/fe754204d8af39dfaf72faaf0f198edb |