Interface FlowExecutionSnapshotGroup
public interface FlowExecutionSnapshotGroup
A group of flow execution snapshots. A SPI interface that encapsulates the storage management for a group of flow
execution snapshots.
- Author:
- Keith Donald
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSnapshot
(Serializable snapshotId, FlowExecutionSnapshot snapshot) Add a flow execution snapshot with given id to this group.getSnapshot
(Serializable snapshotId) Returns the snapshot with the providedid
, ornull
if no such snapshot exists with that id.int
Returns the count of snapshots in this group.Gets the next snapshot id for new snapshot to add to this group.void
Remove all snapshots in this group.void
removeSnapshot
(Serializable snapshotId) Remove the snapshot with the given id.void
updateSnapshot
(Serializable snapshotId, FlowExecutionSnapshot snapshot) Update the snapshot with the given id.
-
Method Details
-
getSnapshot
Returns the snapshot with the providedid
, ornull
if no such snapshot exists with that id.- Parameters:
snapshotId
- the snapshot id- Returns:
- the continuation
- Throws:
SnapshotNotFoundException
- if the id does not match a continuation in this group
-
addSnapshot
Add a flow execution snapshot with given id to this group.- Parameters:
snapshotId
- the snapshot idsnapshot
- the snapshot
-
updateSnapshot
Update the snapshot with the given id. Does nothing if no snapshot has been added with the id provided.- Parameters:
snapshotId
- the snapshot idsnapshot
- the new snapshot
-
removeSnapshot
Remove the snapshot with the given id. Does nothing if no snapshot has been added with the id provided.- Parameters:
snapshotId
- the continuation id
-
removeAllSnapshots
void removeAllSnapshots()Remove all snapshots in this group. Does nothing if no snapshots have been added to this group. -
getSnapshotCount
int getSnapshotCount()Returns the count of snapshots in this group. -
nextSnapshotId
Serializable nextSnapshotId()Gets the next snapshot id for new snapshot to add to this group.- Returns:
- the next snapshot id
-