okgo
2018-02-13 17:02:05 0 举报
okgo
作者其他创作
大纲/内容
BaseCachePolicy
# rawCall :okhttp3.Call + request :Request- attribute3:type
CacheCall
- CachePolicy :policy
+ operation1(params):returnType- operation2(params)- operation3()
Call
Response execute() throws Exception; /** 异步回调执行 */ void execute(Callback callback); /** 是否已经执行 */ boolean isExecuted(); /** 取消 */ void cancel(); /** 是否取消 */ boolean isCanceled(); Call clone(); Request getRequest();
protected transient OkHttpClient client;
RequestFailedCachePolicy
+ attribute1:type = defaultValue+ attribute2:type- attribute3:type
FirstCacheRequestPolicy
DefaultCachePolicy
Request
# cacheMode :CacheMode# callback :Callback- attribute3:type
NoneCacheRequestPolicy
CachePolicy
NoCachePolicy
0 条评论
下一页
为你推荐
查看更多
抱歉,暂无相关内容