public enum RateLimiterMode extends java.lang.Enum<RateLimiterMode>
| 枚举常量和说明 |
|---|
ALL_IO |
READS_ONLY |
WRITES_ONLY |
| 限定符和类型 | 方法和说明 |
|---|---|
static RateLimiterMode |
getRateLimiterMode(byte byteIdentifier)
Get the RateLimiterMode enumeration value by
passing the byte identifier to this method.
|
byte |
getValue()
Returns the byte value of the enumerations value.
|
static RateLimiterMode |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static RateLimiterMode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final RateLimiterMode READS_ONLY
public static final RateLimiterMode WRITES_ONLY
public static final RateLimiterMode ALL_IO
public static RateLimiterMode[] values()
for (RateLimiterMode c : RateLimiterMode.values()) System.out.println(c);
public static RateLimiterMode valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public byte getValue()
Returns the byte value of the enumerations value.
public static RateLimiterMode getRateLimiterMode(byte byteIdentifier)
Get the RateLimiterMode enumeration value by passing the byte identifier to this method.
byteIdentifier - of RateLimiterMode.java.lang.IllegalArgumentException - if the access hint for the byteIdentifier
cannot be found