public interface FlowExecutionSnapshotGroup
Modifier and Type | Method and Description |
---|---|
void |
addSnapshot(java.io.Serializable snapshotId,
FlowExecutionSnapshot snapshot)
Add a flow execution snapshot with given id to this group.
|
FlowExecutionSnapshot |
getSnapshot(java.io.Serializable snapshotId)
Returns the snapshot with the provided
id , or null if no such snapshot exists with that
id. |
int |
getSnapshotCount()
Returns the count of snapshots in this group.
|
java.io.Serializable |
nextSnapshotId()
Gets the next snapshot id for new snapshot to add to this group.
|
void |
removeAllSnapshots()
Remove all snapshots in this group.
|
void |
removeSnapshot(java.io.Serializable snapshotId)
Remove the snapshot with the given id.
|
void |
updateSnapshot(java.io.Serializable snapshotId,
FlowExecutionSnapshot snapshot)
Update the snapshot with the given id.
|
FlowExecutionSnapshot getSnapshot(java.io.Serializable snapshotId) throws SnapshotNotFoundException
id
, or null
if no such snapshot exists with that
id.snapshotId
- the snapshot idSnapshotNotFoundException
- if the id does not match a continuation in this groupvoid addSnapshot(java.io.Serializable snapshotId, FlowExecutionSnapshot snapshot)
snapshotId
- the snapshot idsnapshot
- the snapshotvoid updateSnapshot(java.io.Serializable snapshotId, FlowExecutionSnapshot snapshot)
snapshotId
- the snapshot idsnapshot
- the new snapshotvoid removeSnapshot(java.io.Serializable snapshotId)
snapshotId
- the continuation idvoid removeAllSnapshots()
int getSnapshotCount()
java.io.Serializable nextSnapshotId()