2015年12月30日
摘要: 在工作中用到封装HTTP传输的OkHTTP,OkHttp是相对成熟的解决方案,同时也是开源项目。本文将从源码角度看下OkHttp是如何实现一些网络操作的。HTTP GET:OkHttpClient client = new OkHttpClient();String run(String url)... 阅读全文
posted @ 2015-12-30 16:29 Moriatry 阅读(1065) 评论(0) 推荐(0)
摘要: private static ExecutorService exec = new ThreadPoolExecutor(8, 8, 0L,TimeUnit.MILLISECONDS, new LinkedBlockingQueue(100000),new ThreadPoolExecutor.Ca... 阅读全文
posted @ 2015-12-30 09:49 Moriatry 阅读(188) 评论(0) 推荐(0)