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.
  • Field Details

  • 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:
      beforeAddEntry in interface org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
    • onManagedLedgerPropertiesInitialize

      public void onManagedLedgerPropertiesInitialize(Map<String,String> propertiesMap)
      Specified by:
      onManagedLedgerPropertiesInitialize in interface org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
    • onManagedLedgerLastLedgerInitialize

      public CompletableFuture<Void> onManagedLedgerLastLedgerInitialize(String name, org.apache.bookkeeper.client.LedgerHandle lh)
      Specified by:
      onManagedLedgerLastLedgerInitialize in interface org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
    • onUpdateManagedLedgerInfo

      public void onUpdateManagedLedgerInfo(Map<String,String> propertiesMap)
      Specified by:
      onUpdateManagedLedgerInfo in interface org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor