Class MLTransactionSequenceIdGenerator
java.lang.Object
org.apache.pulsar.transaction.coordinator.impl.MLTransactionSequenceIdGenerator
- All Implemented Interfaces:
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
ManagedLedgerInterceptor.AddEntryOperation, ManagedLedgerInterceptor.LastEntryHandle, ManagedLedgerInterceptor.PayloadProcessorHandle -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeAddEntry(ManagedLedgerInterceptor.AddEntryOperation op, int numberOfMessages) 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
- Specified by:
beforeAddEntryin interfaceManagedLedgerInterceptor
-
onManagedLedgerPropertiesInitialize
- Specified by:
onManagedLedgerPropertiesInitializein interfaceManagedLedgerInterceptor
-
onManagedLedgerLastLedgerInitialize
public CompletableFuture<Void> onManagedLedgerLastLedgerInitialize(String name, ManagedLedgerInterceptor.LastEntryHandle lh) - Specified by:
onManagedLedgerLastLedgerInitializein interfaceManagedLedgerInterceptor
-
onUpdateManagedLedgerInfo
- Specified by:
onUpdateManagedLedgerInfoin interfaceManagedLedgerInterceptor
-