Interface TransientSnapshot

All Superinterfaces:
PersistableSnapshot
All Known Implementing Classes:
FileBasedTransientSnapshot

public interface TransientSnapshot extends PersistableSnapshot
A transient snapshot which can be persisted after taking a snapshot.
  • Method Details

    • take

      ActorFuture<Void> take(Consumer<Path> takeSnapshot)
      Takes a snapshot on the given path. This can be persisted later via calling PersistableSnapshot.persist(). Based on the implementation this could mean that this is writen before on a temporary folder and then moved to the valid snapshot directory.
      Parameters:
      takeSnapshot - the predicate which should take the snapshot and should return true on success
      Returns:
      true on success, false otherwise