Package com.hubspot.slack.client.methods
Enum RateLimitingTiers
- All Implemented Interfaces:
RateLimitingTier,Serializable,Comparable<RateLimitingTiers>
https://api.slack.com/docs/rate-limits#tiers
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAccess tier 1 methods infrequently.Most methods allow at least 20 requests per minute, while allowing for occasional bursts of more requests.Tier 3 methods allow a larger number of requests and are typically attached to methods with paginating collections of conversations or users.Enjoy a large request quota for Tier 4 methods, including generous burst behavior. -
Method Summary
Modifier and TypeMethodDescriptionintstatic RateLimitingTiersReturns the enum constant of this type with the specified name.static RateLimitingTiers[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TIER_1
Access tier 1 methods infrequently. A small amount of burst behavior is tolerated. -
TIER_2
Most methods allow at least 20 requests per minute, while allowing for occasional bursts of more requests. -
TIER_3
Tier 3 methods allow a larger number of requests and are typically attached to methods with paginating collections of conversations or users. Sporadic bursts are welcome. -
TIER_4
Enjoy a large request quota for Tier 4 methods, including generous burst behavior.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getMinutelyAllowance
public int getMinutelyAllowance()- Specified by:
getMinutelyAllowancein interfaceRateLimitingTier
-