Class ManagedLedgerInterceptorImpl

  • All Implemented Interfaces:
    org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor

    public class ManagedLedgerInterceptorImpl
    extends java.lang.Object
    implements org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor

        org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor.PayloadProcessorHandle
    • Constructor Summary

      Constructors 
      Constructor Description
      ManagedLedgerInterceptorImpl​(java.util.Set<org.apache.pulsar.common.intercept.BrokerEntryMetadataInterceptor> brokerEntryMetadataInterceptors, java.util.Set<org.apache.pulsar.common.intercept.ManagedLedgerPayloadProcessor> brokerEntryPayloadProcessors)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.bookkeeper.mledger.impl.OpAddEntry beforeAddEntry​(org.apache.bookkeeper.mledger.impl.OpAddEntry op, int numberOfMessages)  
      long getIndex()  
      java.util.concurrent.CompletableFuture<java.lang.Void> onManagedLedgerLastLedgerInitialize​(java.lang.String name, org.apache.bookkeeper.client.LedgerHandle lh)  
      void onManagedLedgerPropertiesInitialize​(java.util.Map<java.lang.String,​java.lang.String> propertiesMap)  
      void onUpdateManagedLedgerInfo​(java.util.Map<java.lang.String,​java.lang.String> propertiesMap)  
      org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor.PayloadProcessorHandle processPayloadBeforeEntryCache​(io.netty.buffer.ByteBuf ledgerData)  
      org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor.PayloadProcessorHandle processPayloadBeforeLedgerWrite​(org.apache.bookkeeper.mledger.impl.OpAddEntry op, io.netty.buffer.ByteBuf ledgerData)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ManagedLedgerInterceptorImpl

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

      • 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​(java.util.Map<java.lang.String,​java.lang.String> propertiesMap)
        Specified by:
        onManagedLedgerPropertiesInitialize in interface org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
      • onManagedLedgerLastLedgerInitialize

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

        public void onUpdateManagedLedgerInfo​(java.util.Map<java.lang.String,​java.lang.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