public enum RateLimitEnum extends Enum<RateLimitEnum>
| Enum Constant and Description |
|---|
CONCURRENT |
LEAKY_BUCKET |
SLIDING_WINDOW |
TOKEN_BUCKET |
| Modifier and Type | Method and Description |
|---|---|
String |
getKeyName()
getKeyName.
|
String |
getScriptName()
getScriptName.
|
static RateLimitEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RateLimitEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RateLimitEnum SLIDING_WINDOW
public static final RateLimitEnum LEAKY_BUCKET
public static final RateLimitEnum CONCURRENT
public static final RateLimitEnum TOKEN_BUCKET
public static RateLimitEnum[] values()
for (RateLimitEnum c : RateLimitEnum.values()) System.out.println(c);
public static RateLimitEnum 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 String getKeyName()
public String getScriptName()
Copyright © 2021 The Apache Software Foundation. All rights reserved.