Class MLTransactionMetadataStoreProvider
- java.lang.Object
-
- org.apache.pulsar.transaction.coordinator.impl.MLTransactionMetadataStoreProvider
-
- All Implemented Interfaces:
TransactionMetadataStoreProvider
public class MLTransactionMetadataStoreProvider extends java.lang.Object implements TransactionMetadataStoreProvider
The provider that offers managed ledger implementation ofTransactionMetadataStore.
-
-
Constructor Summary
Constructors Constructor Description MLTransactionMetadataStoreProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<TransactionMetadataStore>openStore(TransactionCoordinatorID transactionCoordinatorId, org.apache.bookkeeper.mledger.ManagedLedgerFactory managedLedgerFactory, org.apache.bookkeeper.mledger.ManagedLedgerConfig managedLedgerConfig, TransactionTimeoutTracker timeoutTracker, TransactionRecoverTracker recoverTracker)Open the transaction metadata store for transaction coordinator identified by transactionCoordinatorId.
-
-
-
Method Detail
-
openStore
public java.util.concurrent.CompletableFuture<TransactionMetadataStore> openStore(TransactionCoordinatorID transactionCoordinatorId, org.apache.bookkeeper.mledger.ManagedLedgerFactory managedLedgerFactory, org.apache.bookkeeper.mledger.ManagedLedgerConfig managedLedgerConfig, TransactionTimeoutTracker timeoutTracker, TransactionRecoverTracker recoverTracker)
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.
-
-