Package com.google.gerrit.server.patch
Class PatchListCacheImpl
- java.lang.Object
-
- com.google.gerrit.server.patch.PatchListCacheImpl
-
- All Implemented Interfaces:
PatchListCache
public class PatchListCacheImpl extends Object implements PatchListCache
Provides a cached list ofPatchListEntry
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PatchListCacheImpl.LargeObjectTombstone
Used to cache negative results infileCache
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchList
get(Change change, PatchSet patchSet)
PatchList
get(PatchListKey key, Project.NameKey project)
DiffSummary
getDiffSummary(DiffSummaryKey key, Project.NameKey project)
IntraLineDiff
getIntraLineDiff(IntraLineDiffKey key, IntraLineDiffArgs args)
org.eclipse.jgit.lib.ObjectId
getOldId(Change change, PatchSet patchSet, Integer parentNum)
static com.google.inject.Module
module()
-
-
-
Method Detail
-
module
public static com.google.inject.Module module()
-
get
public PatchList get(PatchListKey key, Project.NameKey project) throws PatchListNotAvailableException
- Specified by:
get
in interfacePatchListCache
- Throws:
PatchListNotAvailableException
-
get
public PatchList get(Change change, PatchSet patchSet) throws PatchListNotAvailableException
- Specified by:
get
in interfacePatchListCache
- Throws:
PatchListNotAvailableException
-
getOldId
public org.eclipse.jgit.lib.ObjectId getOldId(Change change, PatchSet patchSet, Integer parentNum) throws PatchListNotAvailableException
- Specified by:
getOldId
in interfacePatchListCache
- Throws:
PatchListNotAvailableException
-
getIntraLineDiff
public IntraLineDiff getIntraLineDiff(IntraLineDiffKey key, IntraLineDiffArgs args)
- Specified by:
getIntraLineDiff
in interfacePatchListCache
-
getDiffSummary
public DiffSummary getDiffSummary(DiffSummaryKey key, Project.NameKey project) throws PatchListNotAvailableException
- Specified by:
getDiffSummary
in interfacePatchListCache
- Throws:
PatchListNotAvailableException
-
-