public enum RateLimitEnum extends java.lang.Enum<RateLimitEnum>
| Enum Constant and Description |
|---|
CONCURRENT |
LEAKY_BUCKET |
SLIDING_WINDOW |
TOKEN_BUCKET |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getKeyName()
getKeyName.
|
java.lang.String |
getScriptName()
getScriptName.
|
static RateLimitEnum |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getKeyName()
public java.lang.String getScriptName()
Copyright © 2024 The Apache Software Foundation. All rights reserved.