简体   繁体   中英

How to stop existing request execution to stop and just run fallback method in hystrix

在Hystrix中,我正在使用execution.isolation.thread.timeoutInMilliseconds此配置来限制特定时间的响应,否则请使用fallback方法,但是此设置还执行在后端调用的请求。是否可以停止也?

It is not possible to "kill" an executing thread, you can implement some kind of interrupt logic, but it is not recommended in most cases. If you post some code it will be easier to answer...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM