Java实现限定方法执行时间 Future类执行超时处理

最近有个需求, 当调用外部接口长时间没有返回的话, 就执行下一步。 java public static void main(String[] args) throws InterruptedException,ExecutionException { final ExecutorService exec = Executors.newFixedThreadPool(1);
相关文章
相关标签/搜索