public enum StatsLevel extends java.lang.Enum<StatsLevel>
| 枚举常量和说明 |
|---|
ALL
Collect all stats, including measuring duration of mutex operations.
|
EXCEPT_DETAILED_TIMERS
Collect all stats except time inside mutex lock AND time spent on
compression.
|
EXCEPT_TIME_FOR_MUTEX
Collect all stats except the counters requiring to get time inside the
mutex lock.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static StatsLevel |
getStatsLevel(byte value)
Get StatsLevel by byte value.
|
byte |
getValue()
Returns the byte value of the enumerations value.
|
static StatsLevel |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static StatsLevel[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final StatsLevel EXCEPT_DETAILED_TIMERS
public static final StatsLevel EXCEPT_TIME_FOR_MUTEX
public static final StatsLevel ALL
If getting time is expensive on the platform to run, it can reduce scalability to more threads, especially for writes.
public static StatsLevel[] values()
for (StatsLevel c : StatsLevel.values()) System.out.println(c);
public static StatsLevel 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 StatsLevel getStatsLevel(byte value)
value - byte representation of StatsLevel.StatsLevel instance.java.lang.IllegalArgumentException - if an invalid
value is provided.