public class BuildCacheArtifactUploader extends Object
Constructor and Description |
---|
BuildCacheArtifactUploader(RuleKey defaultKey,
java.util.function.Supplier<Optional<RuleKey>> inputBasedKey,
OnDiskBuildInfo onDiskBuildInfo,
BuildRule rule,
ManifestRuleKeyManager manifestRuleKeyManager,
BuckEventBus eventBus,
ArtifactCache artifactCache,
Optional<Long> artifactCacheSizeLimit) |
Modifier and Type | Method and Description |
---|---|
UploadToCacheResultType |
shouldUploadToCache(BuildRuleSuccessType successType,
long outputSize) |
com.google.common.util.concurrent.ListenableFuture<Unit> |
uploadToCache(BuildRuleSuccessType success,
long buildTimeMs)
Perform an actual write to a cache
|
public BuildCacheArtifactUploader(RuleKey defaultKey, java.util.function.Supplier<Optional<RuleKey>> inputBasedKey, OnDiskBuildInfo onDiskBuildInfo, BuildRule rule, ManifestRuleKeyManager manifestRuleKeyManager, BuckEventBus eventBus, ArtifactCache artifactCache, Optional<Long> artifactCacheSizeLimit)
public com.google.common.util.concurrent.ListenableFuture<Unit> uploadToCache(BuildRuleSuccessType success, long buildTimeMs) throws IOException
success
- outcome of a build rulebuildTimeMs
- time it took to actually build a ruleIOException
public UploadToCacheResultType shouldUploadToCache(BuildRuleSuccessType successType, long outputSize)