public enum MemoryPoolSizeType extends java.lang.Enum<MemoryPoolSizeType>
MemoryPoolSizeType describes a memory pool’s ability to
shrink and/or grow dynamically according to need. ELASTIC memory
pools have the ability to use unused memory that other memory
pools are not using. Likewise, when the memory pool no longer needs to use
all of its memory, it can return that memory so that it can be used by
other sibling memory pools.
ELASTIC memory behaves much differently than FIXED memory.
The latter has a fixed upper bound on its size, usually set when the memory
for that memory pool is initially reserved.
| Enum Constant and Description |
|---|
ELASTIC
Dynamic size memory region size type.
|
FIXED
Fixed size memory region size type.
|
UNINITIALIZED
Unitialized memory pool size type.
|
| Modifier and Type | Method and Description |
|---|---|
static MemoryPoolSizeType |
enumValue(long ordinalValue)
Returns the MemoryPoolSizeType enum value corresponding to a long value.
|
static MemoryPoolSizeType |
enumValue(java.lang.String stringValue)
Returns the MemoryPoolSizeType enum value corresponding to a String value.
|
static int |
numberOfElements()
Returns the number of enum values in MemoryPoolSizeType.
|
java.lang.String |
toString()
Returns the string representation of this MemoryPoolSizeType.
|
static MemoryPoolSizeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MemoryPoolSizeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemoryPoolSizeType ELASTIC
The amount of memory reserved for the region by the Java virtual machine can vary over time, increasing or decreasing.
public static final MemoryPoolSizeType FIXED
The Java virtual machine reserves a fixed size amount of memory for the region.
public static final MemoryPoolSizeType UNINITIALIZED
There are two reasons that a MemoryUsage might be labeled UNINITIALIZED:
public static MemoryPoolSizeType enumValue(long ordinalValue)
ordinalValue - value corresponding to a MemoryPoolSizeType enum value’s ordinal value.java.lang.IllegalArgumentException - if ordinalValue is less
than 0 or ordinalValue is greater than the value
returned by #numberOfElements().public static MemoryPoolSizeType enumValue(java.lang.String stringValue)
stringValue - value corresponding to a MemoryPoolSizeType enum value’s String value.java.lang.IllegalArgumentException - if stringValue does not match one
of the enum values.public static int numberOfElements()
public java.lang.String toString()
toString in class java.lang.Enum<MemoryPoolSizeType>public static MemoryPoolSizeType 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 MemoryPoolSizeType[] values()
for (MemoryPoolSizeType c : MemoryPoolSizeType.values()) System.out.println(c);
Submit a bug or feature request
Copyright © 2015-2017, Azul Systems, Inc. All rights reserved.
Azul Systems and Zing are registered trademarks of Azul Systems, Inc.