Class ManagedLedgerInterceptorImpl
- java.lang.Object
-
- org.apache.pulsar.broker.intercept.ManagedLedgerInterceptorImpl
-
- All Implemented Interfaces:
org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
public class ManagedLedgerInterceptorImpl extends java.lang.Object implements org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
-
-
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.OpAddEntrybeforeAddEntry(org.apache.bookkeeper.mledger.impl.OpAddEntry op, int numberOfMessages)longgetIndex()java.util.concurrent.CompletableFuture<java.lang.Void>onManagedLedgerLastLedgerInitialize(java.lang.String name, org.apache.bookkeeper.client.LedgerHandle lh)voidonManagedLedgerPropertiesInitialize(java.util.Map<java.lang.String,java.lang.String> propertiesMap)voidonUpdateManagedLedgerInfo(java.util.Map<java.lang.String,java.lang.String> propertiesMap)org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor.PayloadProcessorHandleprocessPayloadBeforeEntryCache(io.netty.buffer.ByteBuf ledgerData)org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor.PayloadProcessorHandleprocessPayloadBeforeLedgerWrite(org.apache.bookkeeper.mledger.impl.OpAddEntry op, io.netty.buffer.ByteBuf ledgerData)
-
-
-
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:
beforeAddEntryin interfaceorg.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
-
onManagedLedgerPropertiesInitialize
public void onManagedLedgerPropertiesInitialize(java.util.Map<java.lang.String,java.lang.String> propertiesMap)
- Specified by:
onManagedLedgerPropertiesInitializein interfaceorg.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:
onManagedLedgerLastLedgerInitializein interfaceorg.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
-
onUpdateManagedLedgerInfo
public void onUpdateManagedLedgerInfo(java.util.Map<java.lang.String,java.lang.String> propertiesMap)
- Specified by:
onUpdateManagedLedgerInfoin interfaceorg.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:
processPayloadBeforeLedgerWritein interfaceorg.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
-
processPayloadBeforeEntryCache
public org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor.PayloadProcessorHandle processPayloadBeforeEntryCache(io.netty.buffer.ByteBuf ledgerData)
- Specified by:
processPayloadBeforeEntryCachein interfaceorg.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
-
-