Interface WalSink


public interface WalSink
Callback the TransactionManager invokes when a transaction commits successfully, handing over the committed transaction's mutating SQL statements so a durability layer (the engine's write-ahead log) can append them as one atomic, fsync'd record. Implemented by an anonymous class in DatabaseEngine; declared here so the transaction layer need not depend on the persistence layer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    appendTransaction(List<String> statements, List<Instant> instants)
    Append one committed transaction's statements to the log and force them to disk (fsync).
  • Method Details

    • appendTransaction

      void appendTransaction(List<String> statements, List<Instant> instants)
      Append one committed transaction's statements to the log and force them to disk (fsync).