Package org.apache.maven.buildcache
Interface CacheRepository
-
- All Known Subinterfaces:
LocalCacheRepository
,RemoteCacheRepository
- All Known Implementing Classes:
LocalCacheRepositoryImpl
,RemoteCacheRepositoryImpl
,RemoteCacheRepositoryNoOp
public interface CacheRepository
Cache repository.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Build>
findBuild(CacheContext context)
void
saveArtifactFile(CacheResult cacheResult, org.apache.maven.artifact.Artifact artifact)
void
saveBuildInfo(CacheResult cacheResult, Build build)
void
saveCacheReport(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
-
-