Interface TransactionLog
-
- All Known Implementing Classes:
MLTransactionLogImpl
public interface TransactionLogA 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.voidreplayAsync(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-TransactionMetadataEntrytransaction metadata entry- Returns:
- a future represents the result of this operation
-
-