public final class HttpArtifactCache extends AbstractNetworkCache
AbstractAsynchronousCache.CacheEventListener, AbstractAsynchronousCache.FetchRequest, AbstractAsynchronousCache.StoreEvents| Modifier and Type | Field and Description |
|---|---|
static okhttp3.MediaType |
OCTET_STREAM_CONTENT_TYPE |
fetchClient, scheduleType, storeClient| Constructor and Description |
|---|
HttpArtifactCache(com.facebook.buck.artifact_cache.NetworkCacheArgs args) |
| Modifier and Type | Method and Description |
|---|---|
protected CacheDeleteResult |
deleteImpl(List<RuleKey> ruleKeys) |
protected com.facebook.buck.artifact_cache.AbstractAsynchronousCache.FetchResult |
fetchImpl(BuildTarget target,
RuleKey ruleKey,
LazyPath output) |
protected com.facebook.buck.artifact_cache.AbstractAsynchronousCache.MultiContainsResult |
multiContainsImpl(com.google.common.collect.ImmutableSet<RuleKey> ruleKeys) |
protected com.facebook.buck.artifact_cache.AbstractAsynchronousCache.MultiFetchResult |
multiFetchImpl(Iterable<AbstractAsynchronousCache.FetchRequest> requests)
The MultiFetchResult should contain results in the same order as the requests.
|
protected com.facebook.buck.artifact_cache.AbstractAsynchronousCache.StoreResult |
storeImpl(ArtifactInfo info,
Path file) |
close, getRepositorydeleteAsync, fetchAsync, getCacheReadMode, getMode, getMultiFetchBatchSize, getName, getProjectFilesystem, isMultiCheckEnabled, multiContainsAsync, skipPendingAndFutureAsyncFetches, store, storepublic static final okhttp3.MediaType OCTET_STREAM_CONTENT_TYPE
public HttpArtifactCache(com.facebook.buck.artifact_cache.NetworkCacheArgs args)
protected com.facebook.buck.artifact_cache.AbstractAsynchronousCache.FetchResult fetchImpl(@Nullable BuildTarget target, RuleKey ruleKey, LazyPath output) throws IOException
fetchImpl in class AbstractAsynchronousCacheIOExceptionprotected com.facebook.buck.artifact_cache.AbstractAsynchronousCache.MultiContainsResult multiContainsImpl(com.google.common.collect.ImmutableSet<RuleKey> ruleKeys)
multiContainsImpl in class AbstractAsynchronousCacheprotected com.facebook.buck.artifact_cache.AbstractAsynchronousCache.StoreResult storeImpl(ArtifactInfo info, Path file) throws IOException
storeImpl in class AbstractAsynchronousCacheIOExceptionprotected CacheDeleteResult deleteImpl(List<RuleKey> ruleKeys)
deleteImpl in class AbstractAsynchronousCacheprotected com.facebook.buck.artifact_cache.AbstractAsynchronousCache.MultiFetchResult multiFetchImpl(Iterable<AbstractAsynchronousCache.FetchRequest> requests)
AbstractAsynchronousCachemultiFetchImpl in class AbstractAsynchronousCache