public enum ReusedSynchronisationType extends 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(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(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 byte getValue()
public static ReusedSynchronisationType getReusedSynchronisationType(byte value)
value - byte representation of ReusedSynchronisationType.ReusedSynchronisationType instance.IllegalArgumentException - if an invalid
value is provided.Copyright © 2022. All rights reserved.