public final enum

MemoryType

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ java.lang.management.MemoryType

Class Overview

Types of memory pools.

Summary

Enum Values
MemoryType  HEAP  Heap memory type. 
MemoryType  NON_HEAP  Non-heap memory type. 
Public Methods
String toString()
Returns the string representation of this MemoryType.
static MemoryType valueOf(String name)
final static MemoryType[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

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.

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.

Public Methods

public String toString ()

Returns the string representation of this MemoryType.

Returns
  • the string representation of this MemoryType.

public static MemoryType valueOf (String name)

public static final MemoryType[] values ()