DengYong's Blog

CompletionService的使用

Java 并发编程
最近做的项目中有这样一个场景,需要根据手机号查询用户近两天的订单信息,要求最好在15秒以内返回,如果超过15秒则可以直接忽略,然而这些订单信息需要分不同的场景去调不同的接口获取,直接调用接口的话,耗时太长,所以考虑使用CompletionService来异步调用接口,以达到快速返回的目的。 ...
Read more

Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer ...
Read more