public enum ReusedSynchronisationType extends java.lang.Enum<ReusedSynchronisationType>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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)
Returns the enum constant of this type with the specified name.
|
static ReusedSynchronisationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- 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 byte getValue()
public static ReusedSynchronisationType getReusedSynchronisationType(byte value)
value
- byte representation of ReusedSynchronisationType.ReusedSynchronisationType
instance.java.lang.IllegalArgumentException
- if an invalid
value is provided.