public abstract class AbstractSnapshottingFlowExecutionRepository extends AbstractFlowExecutionRepository
FlowExecutionSnapshotFactory
.logger
Constructor and Description |
---|
AbstractSnapshottingFlowExecutionRepository(ConversationManager conversationManager,
FlowExecutionSnapshotFactory snapshotFactory)
Creates a new snapshotting flow execution repository.
|
Modifier and Type | Method and Description |
---|---|
FlowExecutionSnapshotFactory |
getSnapshotFactory()
Returns the configured flow execution snapshot factory.
|
protected java.io.Serializable |
getSnapshotId(FlowExecutionKey key)
Returns the snapshotId portion of the flow execution key.
|
protected void |
putConversationScope(FlowExecution flowExecution,
Conversation conversation)
Puts the value of conversation scope in the conversation object.
|
protected FlowExecution |
restoreFlowExecution(FlowExecutionSnapshot snapshot,
FlowExecutionKey key,
Conversation conversation)
Restore a flow execution from a snapshot.
|
protected FlowExecutionSnapshot |
snapshot(FlowExecution flowExecution)
Take a new flow execution snapshot.
|
assertKeySet, createConversationParameters, getAlwaysGenerateNewNextKey, getConversation, getConversation, getConversationManager, getFlowExecution, getKey, getLock, nextSnapshotId, parseFlowExecutionKey, putFlowExecution, removeFlowExecution, setAlwaysGenerateNewNextKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
removeAllFlowExecutionSnapshots, removeFlowExecutionSnapshot, updateFlowExecutionSnapshot
public AbstractSnapshottingFlowExecutionRepository(ConversationManager conversationManager, FlowExecutionSnapshotFactory snapshotFactory)
conversationManager
- the conversation managersnapshotFactory
- the execution snapshot factorypublic FlowExecutionSnapshotFactory getSnapshotFactory()
protected java.io.Serializable getSnapshotId(FlowExecutionKey key)
key
- the execution keyprotected FlowExecutionSnapshot snapshot(FlowExecution flowExecution)
flowExecution
- the execution to snapshotprotected FlowExecution restoreFlowExecution(FlowExecutionSnapshot snapshot, FlowExecutionKey key, Conversation conversation)
snapshot
- the snapshotkey
- the flow execution snapshot keyconversation
- the governing conversationprotected void putConversationScope(FlowExecution flowExecution, Conversation conversation)
flowExecution
- the flow execution holding a reference to conversation scopeconversation
- the conversation where conversation scope is stored