public enum BaseLimiterType extends Enum<BaseLimiterType>
Limiters supported out-of-the-box.| Enum Constant and Description |
|---|
COUNT_BASED
For
CountBasedLimiter. |
POOL_BASED
For
PoolBasedLimiter. |
RATE_BASED
For
RateBasedLimiter. |
TIME_BASED
For
TimeBasedLimiter. |
| Modifier and Type | Method and Description |
|---|---|
static BaseLimiterType |
forName(String name)
Get a
BaseLimiterType for the given name. |
String |
toString() |
static BaseLimiterType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BaseLimiterType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaseLimiterType RATE_BASED
RateBasedLimiter.public static final BaseLimiterType TIME_BASED
TimeBasedLimiter.public static final BaseLimiterType COUNT_BASED
CountBasedLimiter.public static final BaseLimiterType POOL_BASED
PoolBasedLimiter.public static BaseLimiterType[] values()
for (BaseLimiterType c : BaseLimiterType.values()) System.out.println(c);
public static BaseLimiterType 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 toString()
toString in class Enum<BaseLimiterType>public static BaseLimiterType forName(String name)
BaseLimiterType for the given name.name - the given nameBaseLimiterType for the given name