Interface TransactionLog

All Known Implementing Classes:
MLTransactionLogImpl

public interface TransactionLog
A log interface for transaction to read and write transaction operation.
  • Method Details

    • initialize

      CompletableFuture<Void> initialize()
      Initialize the TransactionLog implementation.
    • replayAsync

      void replayAsync(TransactionLogReplayCallback transactionLogReplayCallback)
      Replay transaction log to load the transaction map.
      Parameters:
      transactionLogReplayCallback - the call back for replaying the transaction log
    • closeAsync

      CompletableFuture<Void> closeAsync()
      Close the transaction log.
    • append

      CompletableFuture<org.apache.bookkeeper.mledger.Position> append(TransactionMetadataEntry transactionMetadataEntry)
      Append the transaction operation to the transaction log.
      Parameters:
      transactionMetadataEntry - TransactionMetadataEntry transaction metadata entry
      Returns:
      a future represents the result of this operation