Package com.google.gerrit.server.submit
Class MergeOpRepoManager
java.lang.Object
com.google.gerrit.server.submit.MergeOpRepoManager
- All Implemented Interfaces:
AutoCloseable
This is a helper class for MergeOp and not intended for general use.
Some database backends require to open a repository just once within a transaction of a submission, this caches open repositories to satisfy that requirement.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclass -
Method Summary
Modifier and TypeMethodDescriptionbatchUpdates(Collection<Project.NameKey> projects, String refLogMessage) voidclose()getRepo(Project.NameKey project) voidresetUpdates(com.google.common.collect.ImmutableSet<Project.NameKey> projects) voidsetContext(Instant ts, IdentifiedUser caller, NotifyResolver.Result notify)
-
Method Details
-
setContext
-
getRepo
public MergeOpRepoManager.OpenRepo getRepo(Project.NameKey project) throws NoSuchProjectException, IOException - Throws:
NoSuchProjectExceptionIOException
-
batchUpdates
public List<BatchUpdate> batchUpdates(Collection<Project.NameKey> projects, String refLogMessage) throws NoSuchProjectException, IOException - Throws:
NoSuchProjectExceptionIOException
-
resetUpdates
public void resetUpdates(com.google.common.collect.ImmutableSet<Project.NameKey> projects) throws NoSuchProjectException, IOException - Throws:
NoSuchProjectExceptionIOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-