Java 类com.squareup.okhttp.internal.http.CacheStrategy 实例源码

项目:boohee_v5.6    文件:Cache.java   
private synchronized void trackResponse(CacheStrategy cacheStrategy) {
    this.requestCount++;
    if (cacheStrategy.networkRequest != null) {
        this.networkCount++;
    } else if (cacheStrategy.cacheResponse != null) {
        this.hitCount++;
    }
}
项目:spdymcsclient    文件:Cache.java   
private synchronized void trackResponse(CacheStrategy cacheStrategy) {
  requestCount++;

  if (cacheStrategy.networkRequest != null) {
    // If this is a conditional request, we'll increment hitCount if/when it hits.
    networkCount++;

  } else if (cacheStrategy.cacheResponse != null) {
    // This response uses the cache and not the network. That's a cache hit.
    hitCount++;
  }
}
项目:spdymcsclient    文件:Cache.java   
@Override public void trackResponse(CacheStrategy cacheStrategy) {
  Cache.this.trackResponse(cacheStrategy);
}
项目:spdymcsclient    文件:InternalCache.java   
/** Track an HTTP response being satisfied with {@code cacheStrategy}. */
void trackResponse(CacheStrategy cacheStrategy);
项目:spdymcsclient    文件:CacheAdapter.java   
@Override public void trackResponse(CacheStrategy cacheStrategy) {
  // This method is optional.
}
项目:boohee_v5.6    文件:InternalCache.java   
void trackResponse(CacheStrategy cacheStrategy);