Interface StateController

    • Method Detail

      • takeTransientSnapshot

        Optional<TransientSnapshot> takeTransientSnapshot​(long lowerBoundSnapshotPosition)
        Takes a snapshot based on the given position. The position is a last processed lower bound event position.
        Parameters:
        lowerBoundSnapshotPosition - the lower bound snapshot position
        Returns:
        a pending snapshot, or nothing if the operation fails
      • consumeReplicatedSnapshots

        void consumeReplicatedSnapshots()
        Registers to consumes replicated snapshots.
      • recover

        void recover()
              throws Exception
        Recovers the state from the latest snapshot.
        Throws:
        Exception
      • openDb

        ZeebeDb openDb()
        Opens the database from the latest snapshot.
        Returns:
        an opened database
      • getValidSnapshotsCount

        int getValidSnapshotsCount()
        Returns the current number of valid snapshots.
        Returns:
        valid snapshots count