Class ManagedLedgerInterceptorImpl

java.lang.Object
org.apache.pulsar.broker.intercept.ManagedLedgerInterceptorImpl
All Implemented Interfaces:
org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor

public class ManagedLedgerInterceptorImpl extends Object implements org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
  • Constructor Details

    • ManagedLedgerInterceptorImpl

      public ManagedLedgerInterceptorImpl(Set<org.apache.pulsar.common.intercept.BrokerEntryMetadataInterceptor> brokerEntryMetadataInterceptors, Set<org.apache.pulsar.common.intercept.ManagedLedgerPayloadProcessor> brokerEntryPayloadProcessors)
  • Method Details

    • getIndex

      public long getIndex()
    • 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
    • processPayloadBeforeLedgerWrite

      public org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor.PayloadProcessorHandle processPayloadBeforeLedgerWrite(org.apache.bookkeeper.mledger.impl.OpAddEntry op, io.netty.buffer.ByteBuf ledgerData)
      Specified by:
      processPayloadBeforeLedgerWrite in interface org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
    • processPayloadBeforeEntryCache

      public org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor.PayloadProcessorHandle processPayloadBeforeEntryCache(io.netty.buffer.ByteBuf ledgerData)
      Specified by:
      processPayloadBeforeEntryCache in interface org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor