Class InMemTransactionMetadataStoreProvider
java.lang.Object
org.apache.pulsar.transaction.coordinator.impl.InMemTransactionMetadataStoreProvider
- All Implemented Interfaces:
TransactionMetadataStoreProvider
public class InMemTransactionMetadataStoreProvider
extends Object
implements TransactionMetadataStoreProvider
The provider that offers in-memory implementation of
TransactionMetadataStore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionopenStore(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
-
InMemTransactionMetadataStoreProvider
public InMemTransactionMetadataStoreProvider()
-
-
Method Details
-
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.
-