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 classPatchListCacheImpl.LargeObjectTombstoneUsed to cache negative results infileCache.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchListget(Change change, PatchSet patchSet)PatchListget(PatchListKey key, Project.NameKey project)DiffSummarygetDiffSummary(DiffSummaryKey key, Project.NameKey project)IntraLineDiffgetIntraLineDiff(IntraLineDiffKey key, IntraLineDiffArgs args)org.eclipse.jgit.lib.ObjectIdgetOldId(Change change, PatchSet patchSet, Integer parentNum)static com.google.inject.Modulemodule()
-
-
-
Method Detail
-
module
public static com.google.inject.Module module()
-
get
public PatchList get(PatchListKey key, Project.NameKey project) throws PatchListNotAvailableException
- Specified by:
getin interfacePatchListCache- Throws:
PatchListNotAvailableException
-
get
public PatchList get(Change change, PatchSet patchSet) throws PatchListNotAvailableException
- Specified by:
getin interfacePatchListCache- Throws:
PatchListNotAvailableException
-
getOldId
public org.eclipse.jgit.lib.ObjectId getOldId(Change change, PatchSet patchSet, Integer parentNum) throws PatchListNotAvailableException
- Specified by:
getOldIdin interfacePatchListCache- Throws:
PatchListNotAvailableException
-
getIntraLineDiff
public IntraLineDiff getIntraLineDiff(IntraLineDiffKey key, IntraLineDiffArgs args)
- Specified by:
getIntraLineDiffin interfacePatchListCache
-
getDiffSummary
public DiffSummary getDiffSummary(DiffSummaryKey key, Project.NameKey project) throws PatchListNotAvailableException
- Specified by:
getDiffSummaryin interfacePatchListCache- Throws:
PatchListNotAvailableException
-
-