public enum MemoryAllocationStrategy extends java.lang.Enum<MemoryAllocationStrategy>
Enum Constant and Description |
---|
BASIC_ALLOCATOR
Allocate off-heap memory using javas
Unsafe . |
ENTERPRISE_ALLOCATOR
Allocate off-heap memory using RTS
|
Modifier and Type | Method and Description |
---|---|
static MemoryAllocationStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MemoryAllocationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemoryAllocationStrategy BASIC_ALLOCATOR
Unsafe
.public static final MemoryAllocationStrategy ENTERPRISE_ALLOCATOR
public static MemoryAllocationStrategy 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 static MemoryAllocationStrategy[] values()
for (MemoryAllocationStrategy c : MemoryAllocationStrategy.values()) System.out.println(c);