Class MaxValueFlowExecutionAggregator
- java.lang.Object
- org.springframework.batch.core.job.flow.support.state.MaxValueFlowExecutionAggregator
- All Implemented Interfaces:
FlowExecutionAggregator
public class MaxValueFlowExecutionAggregator extends java.lang.Object implements FlowExecutionAggregator
Implementation of theFlowExecutionAggregator
interface that aggregatesFlowExecutionStatus
', using the status with the high precedence as the aggregate status. SeeFlowExecutionStatus
for details on status precedence.- Since:
- 2.0
- Author:
- Dave Syer
Constructor Summary
Constructors Constructor Description MaxValueFlowExecutionAggregator()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowExecutionStatus
aggregate(java.util.Collection<FlowExecution> executions)
Aggregate all of theFlowExecutionStatus
es of theFlowExecution
s into one status.
Method Detail
aggregate
public FlowExecutionStatus aggregate(java.util.Collection<FlowExecution> executions)
Aggregate all of theFlowExecutionStatus
es of theFlowExecution
s into one status. The aggregate status will be the status with the highest precedence.- Specified by:
aggregate
in interfaceFlowExecutionAggregator
- Parameters:
executions
- the executions to aggregate- Returns:
- a summary status for the whole lot
- See Also:
FlowExecutionAggregator.aggregate(Collection)