Class MLTransactionMetadataStoreProvider
java.lang.Object
org.apache.pulsar.transaction.coordinator.impl.MLTransactionMetadataStoreProvider
- All Implemented Interfaces:
TransactionMetadataStoreProvider
public class MLTransactionMetadataStoreProvider
extends Object
implements TransactionMetadataStoreProvider
The provider that offers managed ledger implementation of
TransactionMetadataStore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidinitBufferedWriterMetrics(String brokerAdvertisedAddress) openStore(TransactionCoordinatorID transactionCoordinatorId, ManagedLedgerFactory managedLedgerFactory, ManagedLedgerConfig managedLedgerConfig, TransactionTimeoutTracker timeoutTracker, TransactionRecoverTracker recoverTracker, long maxActiveTransactionsPerCoordinator, TxnLogBufferedWriterConfig txnLogBufferedWriterConfig, io.netty.util.Timer timer) Open the transaction metadata store for transaction coordinator identified by transactionCoordinatorId.
-
Constructor Details
-
MLTransactionMetadataStoreProvider
public MLTransactionMetadataStoreProvider()
-
-
Method Details
-
initBufferedWriterMetrics
-
closeBufferedWriterMetrics
public static void closeBufferedWriterMetrics() -
openStore
public CompletableFuture<TransactionMetadataStore> openStore(TransactionCoordinatorID transactionCoordinatorId, ManagedLedgerFactory managedLedgerFactory, ManagedLedgerConfig managedLedgerConfig, TransactionTimeoutTracker timeoutTracker, TransactionRecoverTracker recoverTracker, long maxActiveTransactionsPerCoordinator, TxnLogBufferedWriterConfig txnLogBufferedWriterConfig, io.netty.util.Timer timer) Description copied from interface:TransactionMetadataStoreProviderOpen the transaction metadata store for transaction coordinator identified by transactionCoordinatorId.- Specified by:
openStorein interfaceTransactionMetadataStoreProvider- Parameters:
transactionCoordinatorId-TransactionCoordinatorIDthe coordinator id.managedLedgerFactory-ManagedLedgerFactorythe managedLedgerFactory to create managedLedger.managedLedgerConfig-ManagedLedgerConfigthe managedLedgerConfig to create managedLedger.timeoutTracker-TransactionTimeoutTrackerthe timeoutTracker to handle transaction time out.recoverTracker-TransactionRecoverTrackerthe recoverTracker to handle transaction recover.- Returns:
- a future represents the result of the operation.
an instance of
TransactionMetadataStoreis returned if the operation succeeds.
-