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 Details

    • getSnapshot

      Returns the snapshot with the provided id, or null 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

      void addSnapshot(Serializable snapshotId, FlowExecutionSnapshot snapshot)
      Add a flow execution snapshot with given id to this group.
      Parameters:
      snapshotId - the snapshot id
      snapshot - the snapshot
    • updateSnapshot

      void updateSnapshot(Serializable snapshotId, FlowExecutionSnapshot snapshot)
      Update the snapshot with the given id. Does nothing if no snapshot has been added with the id provided.
      Parameters:
      snapshotId - the snapshot id
      snapshot - the new snapshot
    • removeSnapshot

      void removeSnapshot(Serializable snapshotId)
      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