Enum RateLimitingTiers

java.lang.Object
java.lang.Enum<RateLimitingTiers>
com.hubspot.slack.client.methods.RateLimitingTiers
All Implemented Interfaces:
RateLimitingTier, Serializable, Comparable<RateLimitingTiers>

public enum RateLimitingTiers extends Enum<RateLimitingTiers> implements RateLimitingTier
https://api.slack.com/docs/rate-limits#tiers
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Access 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 Type
    Method
    Description
    int
     
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • TIER_1

      public static final RateLimitingTiers TIER_1
      Access tier 1 methods infrequently. A small amount of burst behavior is tolerated.
    • TIER_2

      public static final RateLimitingTiers TIER_2
      Most methods allow at least 20 requests per minute, while allowing for occasional bursts of more requests.
    • TIER_3

      public static final RateLimitingTiers 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

      public static final RateLimitingTiers TIER_4
      Enjoy a large request quota for Tier 4 methods, including generous burst behavior.
  • Method Details

    • values

      public static RateLimitingTiers[] 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 RateLimitingTiers 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
    • getMinutelyAllowance

      public int getMinutelyAllowance()
      Specified by:
      getMinutelyAllowance in interface RateLimitingTier