Enum Class RuntimeStateTrimConfig.Mode
- All Implemented Interfaces:
Serializable, Comparable<RuntimeStateTrimConfig.Mode>, Constable
- Enclosing class:
RuntimeStateTrimConfig
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeStateTrimConfig.ModeReturns the enum constant of this class with the specified name.static RuntimeStateTrimConfig.Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LATENCY
Minimize safepoint work and latency. It does not explicitly clean retained heap memory, although normal GC policy may still release unused heap memory. -
BALANCED
Balance safepoint latency and memory reduction. Performs a complete collection and cleans unused memory in retained chunks. The collection may release excess heap chunks and uncommit their mappings. -
SIZE
Minimize memory usage. Performs a complete collection, releases unused heap chunks, uncommits unused heap memory, and cleans unused and filler-object memory.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-