public enum RateLimitingTiers extends Enum<RateLimitingTiers> implements RateLimitingTier
| Enum Constant and Description |
|---|
TIER_1
Access tier 1 methods infrequently.
|
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.
|
TIER_4
Enjoy a large request quota for Tier 4 methods, including generous burst behavior.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMinutelyAllowance() |
static RateLimitingTiers |
valueOf(String name)
Returns 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.
|
public static final RateLimitingTiers TIER_1
public static final RateLimitingTiers TIER_2
public static final RateLimitingTiers TIER_3
public static final RateLimitingTiers TIER_4
public static RateLimitingTiers[] values()
for (RateLimitingTiers c : RateLimitingTiers.values()) System.out.println(c);
public static RateLimitingTiers valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getMinutelyAllowance()
getMinutelyAllowance in interface RateLimitingTierCopyright © 2019. All rights reserved.