Interface TransactionMetadataStoreProvider

    • Method Detail

      • newProvider

        static TransactionMetadataStoreProvider newProvider​(java.lang.String providerClassName)
                                                     throws java.io.IOException
        Construct a provider from the provided class.
        Parameters:
        providerClassName - the provider class name.
        Returns:
        an instance of transaction metadata store provider.
        Throws:
        java.io.IOException
      • openStore

        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.
        Parameters:
        transactionCoordinatorId - TransactionCoordinatorID the coordinator id.
        managedLedgerFactory - ManagedLedgerFactory the managedLedgerFactory to create managedLedger.
        managedLedgerConfig - ManagedLedgerConfig the managedLedgerConfig to create managedLedger.
        timeoutTracker - TransactionTimeoutTracker the timeoutTracker to handle transaction time out.
        recoverTracker - TransactionRecoverTracker the recoverTracker to handle transaction recover.
        Returns:
        a future represents the result of the operation. an instance of TransactionMetadataStore is returned if the operation succeeds.