View Javadoc

1   package org.springframework.batch.core.partition.support;
2   
3   import java.util.Collection;
4   
5   import org.springframework.batch.core.StepExecution;
6   
7   /**
8    * Strategy for a aggregating step executions, usually when they are the result
9    * of partitioned or remote execution.
10   * 
11   * @author Dave Syer
12   * 
13   * @since 2.1
14   * 
15   */
16  public interface StepExecutionAggregator {
17  
18  	/**
19  	 * Take the inputs and aggregate, putting the aggregates into the result.
20  	 * 
21  	 * @param result the result to overwrite
22  	 * @param executions the inputs
23  	 */
24  	void aggregate(StepExecution result, Collection<StepExecution> executions);
25  
26  }