Interface TransactionLog

  • All Known Implementing Classes:
    MLTransactionLogImpl

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<org.apache.bookkeeper.mledger.Position> append​(TransactionMetadataEntry transactionMetadataEntry)
      Append the transaction operation to the transaction log.
      java.util.concurrent.CompletableFuture<java.lang.Void> closeAsync()
      Close the transaction log.
      java.util.concurrent.CompletableFuture<java.lang.Void> initialize()
      Initialize the TransactionLog implementation.
      void replayAsync​(TransactionLogReplayCallback transactionLogReplayCallback)
      Replay transaction log to load the transaction map.
    • Method Detail

      • initialize

        java.util.concurrent.CompletableFuture<java.lang.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

        java.util.concurrent.CompletableFuture<java.lang.Void> closeAsync()
        Close the transaction log.
      • append

        java.util.concurrent.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