Enum MethodsRateLimitTier

java.lang.Object
java.lang.Enum<MethodsRateLimitTier>
com.slack.api.methods.MethodsRateLimitTier
All Implemented Interfaces:
Serializable, Comparable<MethodsRateLimitTier>, java.lang.constant.Constable

public enum MethodsRateLimitTier
extends Enum<MethodsRateLimitTier>
See Also:
Slack Rate Limits
  • Enum Constant Details

    • Tier1

      public static final MethodsRateLimitTier Tier1
      1+ per minute

      Access tier 1 methods infrequently. A small amount of burst behavior is tolerated.

    • Tier2

      public static final MethodsRateLimitTier Tier2
      20+ per minute

      Most methods allow at least 20 requests per minute, while allowing for occasional bursts of more requests.

    • Tier3

      public static final MethodsRateLimitTier Tier3
      50+ per minute

      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.

    • Tier4

      public static final MethodsRateLimitTier Tier4
      100+ per minute

      Enjoy a large request quota for Tier 4 methods, including generous burst behavior.

    • SpecialTier_auth_test

      public static final MethodsRateLimitTier SpecialTier_auth_test
      This method allows hundreds of requests per minute. Use it as often as is reasonably required.
    • SpecialTier_chat_postMessage

      public static final MethodsRateLimitTier SpecialTier_chat_postMessage
      chat.postMessage has special rate limiting conditions. It will generally allow an app to post 1 message per second to a specific channel. There are limits governing your app's relationship with the entire workspace above that, limiting posting to several hundred messages per minute. Generous burst behavior is also granted.
    • SpecialTier_chat_getPermalink

      public static final MethodsRateLimitTier SpecialTier_chat_getPermalink
      This method allows hundreds of requests per minute. Use it as often as is reasonably required.
  • Method Details

    • values

      public static MethodsRateLimitTier[] 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

      public static MethodsRateLimitTier valueOf​(String name)
      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 name
      NullPointerException - if the argument is null
    • getAllowedRequestsPerMinute

      public static Integer getAllowedRequestsPerMinute​(MethodsRateLimitTier tier)