Interface TransactionLog
- All Known Implementing Classes:
MLTransactionLogImpl
public interface TransactionLog
A log interface for transaction to read and write transaction operation.
-
Method Summary
Modifier and TypeMethodDescriptionappend(TransactionMetadataEntry transactionMetadataEntry) Append the transaction operation to the transaction log.Close the transaction log.Initialize the TransactionLog implementation.voidreplayAsync(TransactionLogReplayCallback transactionLogReplayCallback) Replay transaction log to load the transaction map.
-
Method Details
-
initialize
CompletableFuture<Void> initialize()Initialize the TransactionLog implementation. -
replayAsync
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
Append the transaction operation to the transaction log.- Parameters:
transactionMetadataEntry-TransactionMetadataEntrytransaction metadata entry- Returns:
- a future represents the result of this operation
-