Uses of Interface
org.apache.pulsar.broker.service.Topic.PublishContext
Packages that use Topic.PublishContext
Package
Description
Pulsar broker interceptor.
-
Uses of Topic.PublishContext in org.apache.pulsar.broker.intercept
Methods in org.apache.pulsar.broker.intercept with parameters of type Topic.PublishContextModifier and TypeMethodDescriptiondefault voidBrokerInterceptor.messageProduced(ServerCnx cnx, Producer producer, long startTimeNs, long ledgerId, long entryId, Topic.PublishContext publishContext) Intercept after a message is produced.voidBrokerInterceptors.messageProduced(ServerCnx cnx, Producer producer, long startTimeNs, long ledgerId, long entryId, Topic.PublishContext publishContext) voidBrokerInterceptorWithClassLoader.messageProduced(ServerCnx cnx, Producer producer, long startTimeNs, long ledgerId, long entryId, Topic.PublishContext publishContext) default voidBrokerInterceptor.onMessagePublish(Producer producer, io.netty.buffer.ByteBuf headersAndPayload, Topic.PublishContext publishContext) Intercept message when broker receive a send request.voidBrokerInterceptors.onMessagePublish(Producer producer, io.netty.buffer.ByteBuf headersAndPayload, Topic.PublishContext publishContext) voidBrokerInterceptorWithClassLoader.onMessagePublish(Producer producer, io.netty.buffer.ByteBuf headersAndPayload, Topic.PublishContext publishContext) -
Uses of Topic.PublishContext in org.apache.pulsar.broker.rest
Classes in org.apache.pulsar.broker.rest that implement Topic.PublishContextModifier and TypeClassDescriptionclassPublishContext implementation for REST message publishing. -
Uses of Topic.PublishContext in org.apache.pulsar.broker.service
Methods in org.apache.pulsar.broker.service with parameters of type Topic.PublishContextModifier and TypeMethodDescriptionprotected booleanAbstractTopic.isExceedMaximumMessageSize(int size, Topic.PublishContext publishContext) voidTopic.publishMessage(io.netty.buffer.ByteBuf headersAndPayload, Topic.PublishContext callback) voidTopic.publishTxnMessage(org.apache.pulsar.client.api.transaction.TxnID txnID, io.netty.buffer.ByteBuf headersAndPayload, Topic.PublishContext publishContext) Publish Transaction message to this Topic's TransactionBuffer. -
Uses of Topic.PublishContext in org.apache.pulsar.broker.service.nonpersistent
Methods in org.apache.pulsar.broker.service.nonpersistent with parameters of type Topic.PublishContextModifier and TypeMethodDescriptionvoidNonPersistentTopic.publishMessage(io.netty.buffer.ByteBuf data, Topic.PublishContext callback) voidNonPersistentTopic.publishTxnMessage(org.apache.pulsar.client.api.transaction.TxnID txnID, io.netty.buffer.ByteBuf headersAndPayload, Topic.PublishContext publishContext) -
Uses of Topic.PublishContext in org.apache.pulsar.broker.service.persistent
Classes in org.apache.pulsar.broker.service.persistent that implement Topic.PublishContextModifier and TypeClassDescriptionclassEncapsulate all the logic of replicated subscriptions tracking for a given topic.Methods in org.apache.pulsar.broker.service.persistent with parameters of type Topic.PublishContextModifier and TypeMethodDescriptionMessageDeduplication.isDuplicate(Topic.PublishContext publishContext, io.netty.buffer.ByteBuf headersAndPayload) Assess whether the message was already stored in the topic.voidPersistentTopic.publishMessage(io.netty.buffer.ByteBuf headersAndPayload, Topic.PublishContext publishContext) voidPersistentTopic.publishTxnMessage(org.apache.pulsar.client.api.transaction.TxnID txnID, io.netty.buffer.ByteBuf headersAndPayload, Topic.PublishContext publishContext) voidMessageDeduplication.recordMessagePersisted(Topic.PublishContext publishContext, Position position) Call this method whenever a message is persisted to get the chance to trigger a snapshot.