public enum MethodsRateLimitTier extends Enum<MethodsRateLimitTier>
| Enum Constant and Description |
|---|
SpecialTier_auth_test
This method allows hundreds of requests per minute.
|
SpecialTier_chat_getPermalink
This method allows hundreds of requests per minute.
|
SpecialTier_chat_postMessage
chat.postMessage has special rate limiting conditions.
|
Tier1
1+ per minute
|
Tier2
20+ per minute
|
Tier3
50+ per minute
|
Tier4
100+ per minute
|
| Modifier and Type | Method and Description |
|---|---|
static Integer |
getAllowedRequestsPerMinute(MethodsRateLimitTier tier) |
static MethodsRateLimitTier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodsRateLimitTier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodsRateLimitTier Tier1
Access tier 1 methods infrequently. A small amount of burst behavior is tolerated.
public static final MethodsRateLimitTier Tier2
Most methods allow at least 20 requests per minute, while allowing for occasional bursts of more requests.
public static final MethodsRateLimitTier Tier3
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.
public static final MethodsRateLimitTier Tier4
Enjoy a large request quota for Tier 4 methods, including generous burst behavior.
public static final MethodsRateLimitTier SpecialTier_auth_test
public static final MethodsRateLimitTier SpecialTier_chat_postMessage
public static final MethodsRateLimitTier SpecialTier_chat_getPermalink
public static MethodsRateLimitTier[] values()
for (MethodsRateLimitTier c : MethodsRateLimitTier.values()) System.out.println(c);
public static MethodsRateLimitTier 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 static Integer getAllowedRequestsPerMinute(MethodsRateLimitTier tier)
Copyright © 2020. All rights reserved.