Class ThrottlingPolicy
java.lang.Object
com.azure.resourcemanager.eventhubs.models.ApplicationGroupPolicy
com.azure.resourcemanager.eventhubs.models.ThrottlingPolicy
Properties of the throttling policy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmetricId()Get the metricId property: Metric Id on which the throttle limit should be set, MetricId can be discovered by hovering over Metric in the Metrics section of Event Hub Namespace inside Azure Portal.longGet the rateLimitThreshold property: The Threshold limit above which the application group will be throttled.Rate limit is always per second.type()Get the type property: Application Group Policy types.voidvalidate()Validates the instance.withMetricId(MetricId metricId) Set the metricId property: Metric Id on which the throttle limit should be set, MetricId can be discovered by hovering over Metric in the Metrics section of Event Hub Namespace inside Azure Portal.Set the name property: The Name of this policy.withRateLimitThreshold(long rateLimitThreshold) Set the rateLimitThreshold property: The Threshold limit above which the application group will be throttled.Rate limit is always per second.Methods inherited from class com.azure.resourcemanager.eventhubs.models.ApplicationGroupPolicy
name
-
Constructor Details
-
ThrottlingPolicy
public ThrottlingPolicy()Creates an instance of ThrottlingPolicy class.
-
-
Method Details
-
type
Get the type property: Application Group Policy types.- Overrides:
typein classApplicationGroupPolicy- Returns:
- the type value.
-
rateLimitThreshold
public long rateLimitThreshold()Get the rateLimitThreshold property: The Threshold limit above which the application group will be throttled.Rate limit is always per second.- Returns:
- the rateLimitThreshold value.
-
withRateLimitThreshold
Set the rateLimitThreshold property: The Threshold limit above which the application group will be throttled.Rate limit is always per second.- Parameters:
rateLimitThreshold- the rateLimitThreshold value to set.- Returns:
- the ThrottlingPolicy object itself.
-
metricId
Get the metricId property: Metric Id on which the throttle limit should be set, MetricId can be discovered by hovering over Metric in the Metrics section of Event Hub Namespace inside Azure Portal.- Returns:
- the metricId value.
-
withMetricId
Set the metricId property: Metric Id on which the throttle limit should be set, MetricId can be discovered by hovering over Metric in the Metrics section of Event Hub Namespace inside Azure Portal.- Parameters:
metricId- the metricId value to set.- Returns:
- the ThrottlingPolicy object itself.
-
withName
Set the name property: The Name of this policy.- Overrides:
withNamein classApplicationGroupPolicy- Parameters:
name- the name value to set.- Returns:
- the ApplicationGroupPolicy object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classApplicationGroupPolicy- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-