public enum ResourceAllocationFairness extends Enum<ResourceAllocationFairness>
Enum Constant and Description |
---|
FAIR
Make acquisitions happen in order.
|
FAST
Move lower-permit count acquisitions that can acquire the lock ahead of high-count ones that
are blocked due to size.
|
Modifier and Type | Method and Description |
---|---|
static ResourceAllocationFairness |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceAllocationFairness[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceAllocationFairness FAIR
public static final ResourceAllocationFairness FAST
public static ResourceAllocationFairness[] values()
for (ResourceAllocationFairness c : ResourceAllocationFairness.values()) System.out.println(c);
public static ResourceAllocationFairness 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 null