public class ManagedLedgerInterceptorImpl extends Object implements ManagedLedgerInterceptor
ManagedLedgerInterceptor.PayloadProcessorHandle| Constructor and Description |
|---|
ManagedLedgerInterceptorImpl(Set<org.apache.pulsar.common.intercept.BrokerEntryMetadataInterceptor> brokerEntryMetadataInterceptors,
Set<org.apache.pulsar.common.intercept.ManagedLedgerPayloadProcessor> brokerEntryPayloadProcessors) |
| Modifier and Type | Method and Description |
|---|---|
OpAddEntry |
beforeAddEntry(OpAddEntry op,
int numberOfMessages) |
long |
getIndex() |
CompletableFuture<Void> |
onManagedLedgerLastLedgerInitialize(String name,
LedgerHandle lh) |
void |
onManagedLedgerPropertiesInitialize(Map<String,String> propertiesMap) |
void |
onUpdateManagedLedgerInfo(Map<String,String> propertiesMap) |
ManagedLedgerInterceptor.PayloadProcessorHandle |
processPayloadBeforeEntryCache(io.netty.buffer.ByteBuf ledgerData) |
ManagedLedgerInterceptor.PayloadProcessorHandle |
processPayloadBeforeLedgerWrite(OpAddEntry op,
io.netty.buffer.ByteBuf ledgerData) |
public long getIndex()
public OpAddEntry beforeAddEntry(OpAddEntry op, int numberOfMessages)
beforeAddEntry in interface ManagedLedgerInterceptorpublic void onManagedLedgerPropertiesInitialize(Map<String,String> propertiesMap)
onManagedLedgerPropertiesInitialize in interface ManagedLedgerInterceptorpublic CompletableFuture<Void> onManagedLedgerLastLedgerInitialize(String name, LedgerHandle lh)
onManagedLedgerLastLedgerInitialize in interface ManagedLedgerInterceptorpublic void onUpdateManagedLedgerInfo(Map<String,String> propertiesMap)
onUpdateManagedLedgerInfo in interface ManagedLedgerInterceptorpublic ManagedLedgerInterceptor.PayloadProcessorHandle processPayloadBeforeLedgerWrite(OpAddEntry op, io.netty.buffer.ByteBuf ledgerData)
processPayloadBeforeLedgerWrite in interface ManagedLedgerInterceptorpublic ManagedLedgerInterceptor.PayloadProcessorHandle processPayloadBeforeEntryCache(io.netty.buffer.ByteBuf ledgerData)
processPayloadBeforeEntryCache in interface ManagedLedgerInterceptorCopyright © 2017–2022 Apache Software Foundation. All rights reserved.