Package com.google.gerrit.server.update
Class BatchUpdates
java.lang.Object
com.google.gerrit.server.update.BatchUpdates
Runs execute methods of a collection of
BatchUpdate
s calling listeners when appropriate.
This class does not maintain any state about the updates it executes. The only reason it is
non-static is to provide convenient access to ChangeData.Factory
without needing to provide one as an
argument.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionexecute
(Collection<BatchUpdate> updates, com.google.common.collect.ImmutableList<BatchUpdateListener> listeners, boolean dryrun)
-
Method Details
-
execute
@CanIgnoreReturnValue public BatchUpdates.Result execute(Collection<BatchUpdate> updates, com.google.common.collect.ImmutableList<BatchUpdateListener> listeners, boolean dryrun) throws UpdateException, RestApiException - Throws:
UpdateException
RestApiException
-