public enum ReusedSynchronisationType extends java.lang.Enum<ReusedSynchronisationType>
| 枚举常量和说明 |
|---|
ADAPTIVE_MUTEX
Use adaptive mutex, which spins in the user space before resorting
to kernel.
|
MUTEX
Standard mutex.
|
THREAD_LOCAL
There is a reused buffer per-thread.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ReusedSynchronisationType |
getReusedSynchronisationType(byte value)
Get ReusedSynchronisationType by byte value.
|
byte |
getValue()
Returns the byte value of the enumerations value
|
static ReusedSynchronisationType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static ReusedSynchronisationType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ReusedSynchronisationType MUTEX
public static final ReusedSynchronisationType ADAPTIVE_MUTEX
public static final ReusedSynchronisationType THREAD_LOCAL
public static ReusedSynchronisationType[] values()
for (ReusedSynchronisationType c : ReusedSynchronisationType.values()) System.out.println(c);
public static ReusedSynchronisationType valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public byte getValue()
public static ReusedSynchronisationType getReusedSynchronisationType(byte value)
value - byte representation of ReusedSynchronisationType.ReusedSynchronisationType instance.java.lang.IllegalArgumentException - if an invalid
value is provided.