Class AppendBrokerTimestampMetadataInterceptor
java.lang.Object
org.apache.pulsar.common.intercept.AppendBrokerTimestampMetadataInterceptor
- All Implemented Interfaces:
BrokerEntryMetadataInterceptor
public class AppendBrokerTimestampMetadataInterceptor
extends Object
implements BrokerEntryMetadataInterceptor
A plugin interface that allows you to intercept the client requests to
the Pulsar brokers and add timestamp from broker side metadata for each entry.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionintercept
(BrokerEntryMetadata brokerMetadata) Called by ManagedLedger to intercept adding an entry.interceptWithNumberOfMessages
(BrokerEntryMetadata brokerMetadata, int numberOfMessages) Called by ManagedLedger to intercept adding an entry with numberOfMessages.
-
Constructor Details
-
AppendBrokerTimestampMetadataInterceptor
public AppendBrokerTimestampMetadataInterceptor()
-
-
Method Details
-
intercept
Description copied from interface:BrokerEntryMetadataInterceptor
Called by ManagedLedger to intercept adding an entry.- Specified by:
intercept
in interfaceBrokerEntryMetadataInterceptor
-
interceptWithNumberOfMessages
public BrokerEntryMetadata interceptWithNumberOfMessages(BrokerEntryMetadata brokerMetadata, int numberOfMessages) Description copied from interface:BrokerEntryMetadataInterceptor
Called by ManagedLedger to intercept adding an entry with numberOfMessages.- Specified by:
interceptWithNumberOfMessages
in interfaceBrokerEntryMetadataInterceptor
-