Enum MemoryType
java.lang.management
java.lang.Object
  java.lang.Enum<MemoryType>
      java.lang.management.MemoryType
All Implemented Interfaces:

public enum MemoryType
extends Enum<MemoryType>
Types of memory pools.
Since:
1.5
Version:
1.8, 11/17/05
Author:
Mandy Chung

Enum Constant Summary
HEAP
Heap memory type.
NON_HEAP
Non-heap memory type.
Method Summary
toString()
Returns the string representation of this MemoryType.
static MemoryType
valueOf(String name)
static MemoryType[]
values()
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Enum Constant Detail
HEAP
public static final MemoryType HEAP
Heap memory type.

The Java virtual machine has a heap that is the runtime data area from which memory for all class instances and arrays are allocated.


NON_HEAP
public static final MemoryType NON_HEAP
Non-heap memory type.

The Java virtual machine manages memory other than the heap (referred as non-heap memory). The non-heap memory includes the method area and memory required for the internal processing or optimization for the Java virtual machine. It stores per-class structures such as a runtime constant pool, field and method data, and the code for methods and constructors.

Method Detail
values
public static MemoryType[] values()

valueOf
public static MemoryType valueOf(String name)

toString
public String toString()
Returns the string representation of this MemoryType.
Overrides:
toString in class Enum
Returns:
the string representation of this MemoryType.
Java API documentation generated with DocFlex/Doclet v1.5.6
DocFlex/Doclet is both a multi-format Javadoc doclet and a free edition of DocFlex/Javadoc. If you need to customize your Javadoc without writing a full-blown doclet from scratch, DocFlex/Javadoc may be the only tool able to help you! Find out more at www.docflex.com