Class FlowExecution
java.lang.Object
org.springframework.batch.core.job.flow.FlowExecution
- All Implemented Interfaces:
Comparable<FlowExecution>
- Since:
- 2.0
- Author:
- Dave Syer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(FlowExecution other) Create an ordering onFlowExecution
instances by comparing their statuses.getName()
toString()
-
Constructor Details
-
FlowExecution
- Parameters:
name
- the flow name to be associated with the FlowExecution.status
- theFlowExecutionStatus
to be associated with the FlowExecution.
-
-
Method Details
-
getName
- Returns:
- the name of the end state reached
-
getStatus
- Returns:
- the FlowExecutionStatus
-
compareTo
Create an ordering onFlowExecution
instances by comparing their statuses.- Specified by:
compareTo
in interfaceComparable<FlowExecution>
- Parameters:
other
- theFlowExecution
instance to compare with this instance.- Returns:
- negative, zero or positive as per the contract
- See Also:
-
toString
-