Interface StateController

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
StateControllerImpl

public interface StateController extends AutoCloseable
  • Method Details

    • takeTransientSnapshot

      ActorFuture<TransientSnapshot> takeTransientSnapshot(long lowerBoundSnapshotPosition)
      Takes a snapshot based on the given position. The position is a last processed lower bound event position. When the returned future completes successfully the transient snapshot will be valid.
      Parameters:
      lowerBoundSnapshotPosition - the lower bound snapshot position
      Returns:
      a future
    • recover

      ActorFuture<ZeebeDb> recover()
      Recovers the state from the snapshot and opens the database
      Returns:
      ZeebeDb the database which is recovered from the snapshot.
    • closeDb

      ActorFuture<Void> closeDb()
      Close db if it was opened by recover()
      Returns:
      future