Skip to main content
Version: 3.x

IConsumerThrottlingMetricConfigurationBuilder interface

An interface to configure the throttling metrics for KafkaFlow consumers.

public interface IConsumerThrottlingMetricConfigurationBuilder

Members

namedescription
AddMetric(…)Configures the metric used for throttling the consumer. The factory function takes an instance of IDependencyResolver, allowing you to resolve dependencies required to create an instance of IConsumerThrottlingMetric.
WithInterval(…)Sets the interval at which the throttling metric is checked. The throttling actions will be applied based on this interval.

See Also