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, getRepository
deleteAsync, fetchAsync, getCacheReadMode, getMode, getMultiFetchBatchSize, getName, getProjectFilesystem, isMultiCheckEnabled, multiContainsAsync, skipPendingAndFutureAsyncFetches, store, store
public 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 AbstractAsynchronousCache
IOException
protected com.facebook.buck.artifact_cache.AbstractAsynchronousCache.MultiContainsResult multiContainsImpl(com.google.common.collect.ImmutableSet<RuleKey> ruleKeys)
multiContainsImpl
in class AbstractAsynchronousCache
protected com.facebook.buck.artifact_cache.AbstractAsynchronousCache.StoreResult storeImpl(ArtifactInfo info, Path file) throws IOException
storeImpl
in class AbstractAsynchronousCache
IOException
protected CacheDeleteResult deleteImpl(List<RuleKey> ruleKeys)
deleteImpl
in class AbstractAsynchronousCache
protected com.facebook.buck.artifact_cache.AbstractAsynchronousCache.MultiFetchResult multiFetchImpl(Iterable<AbstractAsynchronousCache.FetchRequest> requests)
AbstractAsynchronousCache
multiFetchImpl
in class AbstractAsynchronousCache