Package org.apache.maven.buildcache
Interface CacheRepository
-
- All Known Subinterfaces:
LocalCacheRepository,RemoteCacheRepository
- All Known Implementing Classes:
LocalCacheRepositoryImpl,RemoteCacheRepositoryImpl,RemoteCacheRepositoryNoOp
public interface CacheRepositoryCache repository.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Build>findBuild(CacheContext context)voidsaveArtifactFile(CacheResult cacheResult, org.apache.maven.artifact.Artifact artifact)voidsaveBuildInfo(CacheResult cacheResult, Build build)voidsaveCacheReport(String buildId, org.apache.maven.execution.MavenSession session, CacheReport cacheReport)
-
-
-
Method Detail
-
findBuild
@Nonnull Optional<Build> findBuild(CacheContext context) throws IOException
- Throws:
IOException
-
saveBuildInfo
void saveBuildInfo(CacheResult cacheResult, Build build) throws IOException
- Throws:
IOException
-
saveArtifactFile
void saveArtifactFile(CacheResult cacheResult, org.apache.maven.artifact.Artifact artifact) throws IOException
- Throws:
IOException
-
saveCacheReport
void saveCacheReport(String buildId, org.apache.maven.execution.MavenSession session, CacheReport cacheReport) throws IOException
- Throws:
IOException
-
-