Class SubmitStrategy

    • Method Detail

      • module

        public static com.google.inject.Module module()
      • addOps

        public final void addOps​(BatchUpdate bu,
                                 Set<CodeReviewCommit> toMerge)
                          throws IntegrationException
        Add operations to a batch update that execute this submit strategy.

        Guarantees exactly one op is added to the update for each change in the input set.

        Parameters:
        bu - batch update to add operations to.
        toMerge - the set of submitted commits that should be merged using this submit strategy. Implementations are responsible for ordering of commits, and will not modify the input in place.
        Throws:
        IntegrationException - if an error occurred initializing the operations (as opposed to an error during execution, which will be reported only when the batch update executes the operations).