Package org.apache.pulsar.broker.service
Class DisabledPublishRateLimiter
java.lang.Object
org.apache.pulsar.broker.service.DisabledPublishRateLimiter
- All Implemented Interfaces:
PublishRateLimiter
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidhandlePublishThrottling(Producer producer, int numOfMessages, long msgSizeInBytes) Consumes publishing quota and handles throttling.voidupdates rate-limiting threshold based on policies.voidupdate(org.apache.pulsar.common.policies.data.PublishRate maxPublishRate) updates rate-limiting threshold based on passed in rate limiter.
-
Field Details
-
INSTANCE
-
-
Method Details
-
handlePublishThrottling
Description copied from interface:PublishRateLimiterConsumes publishing quota and handles throttling.The rate limiter implementation calls
Producer.incrementThrottleCount()to indicate that the producer should be throttled. The rate limiter must schedule a call toProducer.decrementThrottleCount()after a throttling period that it calculates.- Specified by:
handlePublishThrottlingin interfacePublishRateLimiternumOfMessages- number of messages to publishmsgSizeInBytes- size of messages in bytes to publish
-
update
Description copied from interface:PublishRateLimiterupdates rate-limiting threshold based on policies.- Specified by:
updatein interfacePublishRateLimiter
-
update
public void update(org.apache.pulsar.common.policies.data.PublishRate maxPublishRate) Description copied from interface:PublishRateLimiterupdates rate-limiting threshold based on passed in rate limiter.- Specified by:
updatein interfacePublishRateLimiter
-