public enum AllocationStrategyId extends java.lang.Enum<AllocationStrategyId> implements AllocationStrategy
AllocationStrategyId
defines some resource allocation strategies.Enum Constant and Description |
---|
FREE
Always returns a free object (throws an exception if all the objects are in use).
|
RANDOM
Returns a randomly chosen object.
|
TRY_FREE
Returns a free object (if it exists) or a used one (otherwise).
|
Modifier and Type | Method and Description |
---|---|
static AllocationStrategyId |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AllocationStrategyId[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
next
public static final AllocationStrategyId FREE
public static final AllocationStrategyId TRY_FREE
public static final AllocationStrategyId RANDOM
public static AllocationStrategyId[] values()
for (AllocationStrategyId c : AllocationStrategyId.values()) System.out.println(c);
public static AllocationStrategyId 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 null