public static enum MemoryManager.Type extends java.lang.Enum<MemoryManager.Type>
Enum Constant and Description |
---|
JMX_BASED
Uses JMX memory management mbeans for tracking available memory.
|
SELF_MANAGED
Maintains memory usage itself.
|
Modifier and Type | Method and Description |
---|---|
static MemoryManager.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MemoryManager.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemoryManager.Type JMX_BASED
public static final MemoryManager.Type SELF_MANAGED
MemoryManager.changeMemoryUsedBy(long)
, and check if the total memory used by all
users of this calls causes the available memory to become low using MemoryManager.isMemoryLow()
public static MemoryManager.Type[] values()
for (MemoryManager.Type c : MemoryManager.Type.values()) System.out.println(c);
public static MemoryManager.Type 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 nullCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.