Enum Class ThrottleReason
- All Implemented Interfaces:
Serializable, Comparable<ThrottleReason>, Constable
Internal throttle reasons reported by the QuotaCoordinator.
These represent the coordinator's determination of why a quota entity is being throttled. On the broker side, these are mapped to customer-facing reasons via ClientQuotaCallback.mapThrottleReason(ThrottleReason, java.util.Map).
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA broker hit its per-broker capacity cap while the entity was being throttled.Throttling occurred while the cluster quota is scaling out (eCKU scaling).Throttling occurred despite low cluster-wide usage (traffic skew / partition hotspot).The cluster-wide (tenant's or principal's) quota limit was exceeded.Method Summary
Modifier and TypeMethodDescriptionstatic ThrottleReasonParses a wire-format string into aThrottleReason.value()Returns the wire-format string sent inPublishQuotaTargetRequest.static ThrottleReasonReturns the enum constant of this class with the specified name.static ThrottleReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Details
SKEW_TRAFFIC
Throttling occurred despite low cluster-wide usage (traffic skew / partition hotspot).TOTAL_QUOTA_EXCEEDED
The cluster-wide (tenant's or principal's) quota limit was exceeded.BROKER_CAPACITY_REACHED
A broker hit its per-broker capacity cap while the entity was being throttled.SCALING_OUT
Throttling occurred while the cluster quota is scaling out (eCKU scaling).
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
value
Returns the wire-format string sent inPublishQuotaTargetRequest.fromValue
Parses a wire-format string into aThrottleReason.- Parameters:
value- the string value from the protocol- Returns:
- the matching enum constant, or
nullif unrecognized