Package com.google.gerrit.server.update
Class SubmissionExecutor
java.lang.Object
com.google.gerrit.server.update.SubmissionExecutor
Wrapper class for calling BatchUpdates.execute() that manages calls to submission listeners.
- 
Constructor SummaryConstructorsConstructorDescriptionSubmissionExecutor(BatchUpdates batchUpdates, boolean dryrun, com.google.common.collect.ImmutableList<SubmissionListener> submissionListeners) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidCaller invokes this when done with the submission (either because everything succeeded or gave up retrying).voidexecute(Collection<BatchUpdate> updates) Execute the batch updates, reporting to all the Submission and BatchUpdateListeners.voidsetAdditionalBatchUpdateListeners(com.google.common.collect.ImmutableList<BatchUpdateListener> additionalListeners) Set additional listeners.
- 
Constructor Details- 
SubmissionExecutorpublic SubmissionExecutor(BatchUpdates batchUpdates, boolean dryrun, com.google.common.collect.ImmutableList<SubmissionListener> submissionListeners) 
 
- 
- 
Method Details- 
setAdditionalBatchUpdateListenerspublic void setAdditionalBatchUpdateListeners(com.google.common.collect.ImmutableList<BatchUpdateListener> additionalListeners) Set additional listeners. These can be set again in each try (or will be reused if not overwritten).
- 
executeExecute the batch updates, reporting to all the Submission and BatchUpdateListeners.- Throws:
- RestApiException
- UpdateException
 
- 
afterExecutionsCaller invokes this when done with the submission (either because everything succeeded or gave up retrying).
 
-