public abstract class SubmitStrategy extends Object
A submit strategy for a certain SubmitType defines how the submitted commits should be
 merged.
| Modifier and Type | Method and Description | 
|---|---|
void | 
addOps(BatchUpdate bu,
      Set<CodeReviewCommit> toMerge)
Add operations to a batch update that execute this submit strategy. 
 | 
protected abstract List<com.google.gerrit.server.git.strategy.SubmitStrategyOp> | 
buildOps(Collection<CodeReviewCommit> toMerge)  | 
static com.google.inject.Module | 
module()  | 
public static com.google.inject.Module module()
public final void addOps(BatchUpdate bu, Set<CodeReviewCommit> toMerge) throws IntegrationException
Guarantees exactly one op is added to the update for each change in the input set.
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.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).protected abstract List<com.google.gerrit.server.git.strategy.SubmitStrategyOp> buildOps(Collection<CodeReviewCommit> toMerge) throws IntegrationException
IntegrationException