Class MLTransactionLogImpl
java.lang.Object
org.apache.pulsar.transaction.coordinator.impl.MLTransactionLogImpl
- All Implemented Interfaces:
TransactionLog
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMLTransactionLogImpl(TransactionCoordinatorID tcID, ManagedLedgerFactory managedLedgerFactory, ManagedLedgerConfig managedLedgerConfig, TxnLogBufferedWriterConfig txnLogBufferedWriterConfig, io.netty.util.Timer timer, TxnLogBufferedWriterMetricsStats bufferedWriterMetrics) -
Method Summary
Modifier and TypeMethodDescriptionappend(TransactionMetadataEntry transactionMetadataEntry) Append the transaction operation to the transaction log.Close the transaction log.deletePosition(List<Position> positions) static List<TransactionMetadataEntry>deserializeEntry(io.netty.buffer.ByteBuf buffer) static List<TransactionMetadataEntry>deserializeEntry(Entry entry) static TopicNameInitialize the TransactionLog implementation.voidreplayAsync(TransactionLogReplayCallback transactionLogReplayCallback) Replay transaction log to load the transaction map.
-
Field Details
-
TRANSACTION_LOG_PREFIX
- See Also:
-
TRANSACTION_SUBSCRIPTION_NAME
- See Also:
-
-
Constructor Details
-
MLTransactionLogImpl
public MLTransactionLogImpl(TransactionCoordinatorID tcID, ManagedLedgerFactory managedLedgerFactory, ManagedLedgerConfig managedLedgerConfig, TxnLogBufferedWriterConfig txnLogBufferedWriterConfig, io.netty.util.Timer timer, TxnLogBufferedWriterMetricsStats bufferedWriterMetrics)
-
-
Method Details
-
getMLTransactionLogName
-
initialize
Description copied from interface:TransactionLogInitialize the TransactionLog implementation.- Specified by:
initializein interfaceTransactionLog
-
replayAsync
Description copied from interface:TransactionLogReplay transaction log to load the transaction map.- Specified by:
replayAsyncin interfaceTransactionLog- Parameters:
transactionLogReplayCallback- the call back for replaying the transaction log
-
closeAsync
Description copied from interface:TransactionLogClose the transaction log.- Specified by:
closeAsyncin interfaceTransactionLog
-
append
Description copied from interface:TransactionLogAppend the transaction operation to the transaction log.- Specified by:
appendin interfaceTransactionLog- Parameters:
transactionMetadataEntry-TransactionMetadataEntrytransaction metadata entry- Returns:
- a future represents the result of this operation
-
deletePosition
-
getManagedLedger
-
deserializeEntry
-
deserializeEntry
-