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)
FlowExecutionKeyFactorygetKey in interface FlowExecutionKeyFactoryexecution - the flow executionpublic void removeAllFlowExecutionSnapshots(FlowExecution execution)
FlowExecutionKeyFactoryremoveAllFlowExecutionSnapshots in interface FlowExecutionKeyFactoryexecution - the flow executionpublic void removeFlowExecutionSnapshot(FlowExecution execution)
FlowExecutionKeyFactoryremoveFlowExecutionSnapshot in interface FlowExecutionKeyFactoryexecution - the flow executionpublic void updateFlowExecutionSnapshot(FlowExecution execution)
FlowExecutionKeyFactoryupdateFlowExecutionSnapshot in interface FlowExecutionKeyFactoryexecution - the flow execution