Class ManagedLedgerInterceptorImpl
java.lang.Object
org.apache.pulsar.broker.intercept.ManagedLedgerInterceptorImpl
- All Implemented Interfaces:
ManagedLedgerInterceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor
ManagedLedgerInterceptor.AddEntryOperation, ManagedLedgerInterceptor.LastEntryHandle, 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 TypeMethodDescriptionvoidafterFailedAddEntry(int numberOfMessages) voidbeforeAddEntry(ManagedLedgerInterceptor.AddEntryOperation op, int numberOfMessages) longgetIndex()voidonManagedLedgerPropertiesInitialize(Map<String, String> propertiesMap) voidonUpdateManagedLedgerInfo(Map<String, String> propertiesMap) processPayloadBeforeEntryCache(io.netty.buffer.ByteBuf ledgerData) processPayloadBeforeLedgerWrite(Object ctx, io.netty.buffer.ByteBuf ledgerData)
-
Constructor Details
-
ManagedLedgerInterceptorImpl
-
-
Method Details
-
getIndex
public long getIndex() -
beforeAddEntry
- Specified by:
beforeAddEntryin interfaceManagedLedgerInterceptor
-
afterFailedAddEntry
public void afterFailedAddEntry(int numberOfMessages) - Specified by:
afterFailedAddEntryin interfaceManagedLedgerInterceptor
-
onManagedLedgerPropertiesInitialize
- Specified by:
onManagedLedgerPropertiesInitializein interfaceManagedLedgerInterceptor
-
onManagedLedgerLastLedgerInitialize
public CompletableFuture<Void> onManagedLedgerLastLedgerInitialize(String name, ManagedLedgerInterceptor.LastEntryHandle lh) - Specified by:
onManagedLedgerLastLedgerInitializein interfaceManagedLedgerInterceptor
-
onUpdateManagedLedgerInfo
- Specified by:
onUpdateManagedLedgerInfoin interfaceManagedLedgerInterceptor
-
processPayloadBeforeLedgerWrite
public ManagedLedgerInterceptor.PayloadProcessorHandle processPayloadBeforeLedgerWrite(Object ctx, io.netty.buffer.ByteBuf ledgerData) - Specified by:
processPayloadBeforeLedgerWritein interfaceManagedLedgerInterceptor
-
processPayloadBeforeEntryCache
public ManagedLedgerInterceptor.PayloadProcessorHandle processPayloadBeforeEntryCache(io.netty.buffer.ByteBuf ledgerData) - Specified by:
processPayloadBeforeEntryCachein interfaceManagedLedgerInterceptor
-