public class MockFlowExecutionKeyFactory extends java.lang.Object implements FlowExecutionKeyFactory
Constructor and Description |
---|
MockFlowExecutionKeyFactory() |
Modifier and Type | Method and Description |
---|---|
FlowExecutionKey |
getKey(FlowExecution execution)
Get the key to assign to the flow execution.
|
void |
removeAllFlowExecutionSnapshots(FlowExecution execution)
Remove all snapshots associated with the flow execution from storage, invalidating all history.
|
void |
removeFlowExecutionSnapshot(FlowExecution execution)
Remove the snapshot that was used to restore this flow execution, discarding it for future use.
|
void |
updateFlowExecutionSnapshot(FlowExecution execution)
Capture the current state of the flow execution by updating its snapshot in storage.
|
public FlowExecutionKey getKey(FlowExecution execution)
FlowExecutionKeyFactory
getKey
in interface FlowExecutionKeyFactory
execution
- the flow executionpublic void removeAllFlowExecutionSnapshots(FlowExecution execution)
FlowExecutionKeyFactory
removeAllFlowExecutionSnapshots
in interface FlowExecutionKeyFactory
execution
- the flow executionpublic void removeFlowExecutionSnapshot(FlowExecution execution)
FlowExecutionKeyFactory
removeFlowExecutionSnapshot
in interface FlowExecutionKeyFactory
execution
- the flow executionpublic void updateFlowExecutionSnapshot(FlowExecution execution)
FlowExecutionKeyFactory
updateFlowExecutionSnapshot
in interface FlowExecutionKeyFactory
execution
- the flow execution