Class MLTransactionSequenceIdGenerator
java.lang.Object
org.apache.pulsar.transaction.coordinator.impl.MLTransactionSequenceIdGenerator
- All Implemented Interfaces:
org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
public class MLTransactionSequenceIdGenerator
extends Object
implements org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
Store max sequenceID in ManagedLedger properties, in order to recover transaction log.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor.PayloadProcessorHandle -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.bookkeeper.mledger.impl.OpAddEntrybeforeAddEntry(org.apache.bookkeeper.mledger.impl.OpAddEntry op, int numberOfMessages) onManagedLedgerLastLedgerInitialize(String name, org.apache.bookkeeper.client.LedgerHandle lh) voidonManagedLedgerPropertiesInitialize(Map<String, String> propertiesMap) voidonUpdateManagedLedgerInfo(Map<String, String> propertiesMap) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
afterFailedAddEntry, processPayloadBeforeEntryCache, processPayloadBeforeLedgerWrite
-
Field Details
-
MAX_LOCAL_TXN_ID
- See Also:
-
-
Constructor Details
-
MLTransactionSequenceIdGenerator
public MLTransactionSequenceIdGenerator()
-
-
Method Details
-
beforeAddEntry
public org.apache.bookkeeper.mledger.impl.OpAddEntry beforeAddEntry(org.apache.bookkeeper.mledger.impl.OpAddEntry op, int numberOfMessages) - Specified by:
beforeAddEntryin interfaceorg.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
-
onManagedLedgerPropertiesInitialize
- Specified by:
onManagedLedgerPropertiesInitializein interfaceorg.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
-
onManagedLedgerLastLedgerInitialize
public CompletableFuture<Void> onManagedLedgerLastLedgerInitialize(String name, org.apache.bookkeeper.client.LedgerHandle lh) - Specified by:
onManagedLedgerLastLedgerInitializein interfaceorg.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
-
onUpdateManagedLedgerInfo
- Specified by:
onUpdateManagedLedgerInfoin interfaceorg.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
-