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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor.PayloadProcessorHandle -
Constructor Summary
ConstructorsConstructorDescriptionManagedLedgerInterceptorImpl(Set<org.apache.pulsar.common.intercept.BrokerEntryMetadataInterceptor> brokerEntryMetadataInterceptors, Set<org.apache.pulsar.common.intercept.ManagedLedgerPayloadProcessor> brokerEntryPayloadProcessors) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.bookkeeper.mledger.impl.OpAddEntrybeforeAddEntry(org.apache.bookkeeper.mledger.impl.OpAddEntry op, int numberOfMessages) longgetIndex()onManagedLedgerLastLedgerInitialize(String name, org.apache.bookkeeper.client.LedgerHandle lh) voidonManagedLedgerPropertiesInitialize(Map<String, String> propertiesMap) voidonUpdateManagedLedgerInfo(Map<String, 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 Details
-
ManagedLedgerInterceptorImpl
-
-
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:
beforeAddEntryin interfaceorg.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
-
onManagedLedgerPropertiesInitialize
- Specified by:
onManagedLedgerPropertiesInitializein interfaceorg.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
-
onManagedLedgerLastLedgerInitialize
public CompletableFuture<Void> onManagedLedgerLastLedgerInitialize(String name, org.apache.bookkeeper.client.LedgerHandle lh) - Specified by:
onManagedLedgerLastLedgerInitializein interfaceorg.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
-
onUpdateManagedLedgerInfo
- 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
-