The constants defined by this enumerated type define the type of a memory pool as either heap or nonheap memory. See MemoryPoolMXBean.getType( ) . Figure 10-87. java.lang.management.MemoryTypepublic enum MemoryType { // Enumerated Constants HEAP , NON_HEAP ; // Public Class Methods public static MemoryType valueOf (String name ); public static final MemoryType[ ] values ( ); // Public Methods Overriding Enum public String toString ( ); } Returned ByMemoryPoolMXBean.getType( ) |