思路:
首先创建httpTask
管理类,其中包含了requestData, JsonHttpRequest, CallBackListener
等,然后将该任务加入
队列中,线程池管理类ThreadPoolManager
执行死循环,从队列中取出任务执行(失败任务会放在延时队列中,延时请求)。
参考:
-
Notifications
You must be signed in to change notification settings - Fork 0
tianyalu/NeHttp
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
手写类OKHttp网络请求框架-线程池,请求队列,失败重试机制
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published