摘要: ## 问题 项目中需要调用第三方接口,若第三方接口在X秒内未返回,则继续后续业务操作 ## 代码展示 ``` public class CheckTimeOutDemo { private static ExecutorService threadService = new ThreadPoolEx 阅读全文
posted @ 2023-05-25 16:02 呆呆的阿关 阅读(82) 评论(0) 推荐(0)
摘要: ## 问题 项目中需要调用第三方接口,若第三方接口在X秒内未返回,则继续后续业务操作 ## 代码展示 ``` public class CheckTimeOutDemo { private static ExecutorService threadService = new ThreadPoolEx 阅读全文
posted @ 2023-05-25 15:50 呆呆的阿关 阅读(61) 评论(0) 推荐(0)