|
spring-webflow | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.execution.repository.snapshot.SerializedFlowExecutionSnapshotFactory
public class SerializedFlowExecutionSnapshotFactory
A factory that creates new instances of flow execution snapshots based on standard Java serialization.
| Constructor Summary | |
|---|---|
SerializedFlowExecutionSnapshotFactory(FlowExecutionFactory flowExecutionFactory,
FlowDefinitionLocator flowDefinitionLocator)
Creates a new serialized flow execution snapshot factory |
|
| Method Summary | |
|---|---|
FlowExecutionSnapshot |
createSnapshot(FlowExecution flowExecution)
Takes a snapshot of the flow execution. |
boolean |
getCompress()
Returns whether or not the snapshots should be compressed. |
FlowExecution |
restoreExecution(FlowExecutionSnapshot snapshot,
java.lang.String flowId,
FlowExecutionKey key,
MutableAttributeMap<java.lang.Object> conversationScope,
FlowExecutionKeyFactory keyFactory)
Restores a flow execution from a previously taken snapshot. |
void |
setCompress(boolean compress)
Set whether or not the snapshots should be compressed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerializedFlowExecutionSnapshotFactory(FlowExecutionFactory flowExecutionFactory,
FlowDefinitionLocator flowDefinitionLocator)
flowDefinitionLocator - the flow definition locatorflowExecutionFactory - the flow execution factory| Method Detail |
|---|
public boolean getCompress()
public void setCompress(boolean compress)
public FlowExecutionSnapshot createSnapshot(FlowExecution flowExecution)
throws SnapshotCreationException
FlowExecutionSnapshotFactory
createSnapshot in interface FlowExecutionSnapshotFactoryflowExecution - the flow execution
SnapshotCreationException - if the snapshot could not be created
public FlowExecution restoreExecution(FlowExecutionSnapshot snapshot,
java.lang.String flowId,
FlowExecutionKey key,
MutableAttributeMap<java.lang.Object> conversationScope,
FlowExecutionKeyFactory keyFactory)
throws FlowExecutionRestorationFailureException
FlowExecutionSnapshotFactory
restoreExecution in interface FlowExecutionSnapshotFactorysnapshot - the previously taken snapshotflowId - the id of the root flow definitionkey - the flow execution keyconversationScope - conversation scopekeyFactory - factory for creating new snapshot keys
FlowExecutionRestorationFailureException - if flow execution restoration fails
|
spring-webflow | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||