public static final class MemoryTypes.Info.Builder
extends java.lang.Object
MemoryTypes.Info
.Constructor and Description |
---|
Builder(long sizeMiB,
boolean hotAddEnabled)
Constructor with parameters for the required properties of
MemoryTypes.Info . |
Modifier and Type | Method and Description |
---|---|
MemoryTypes.Info |
build() |
MemoryTypes.Info.Builder |
setHotAddIncrementSizeMiB(java.lang.Long hotAddIncrementSizeMiB)
The granularity, in mebibytes, at which memory can be added to a running virtual
machine.
|
MemoryTypes.Info.Builder |
setHotAddLimitMiB(java.lang.Long hotAddLimitMiB)
The maximum amount of memory, in mebibytes, that can be added to a running
virtual machine.
|
public Builder(long sizeMiB, boolean hotAddEnabled)
MemoryTypes.Info
.public MemoryTypes.Info.Builder setHotAddIncrementSizeMiB(java.lang.Long hotAddIncrementSizeMiB)
When adding memory to a running virtual machine, the amount of
memory added must be at least MemoryTypes.Info.getHotAddIncrementSizeMiB()
and
the total memory size of the virtual machine must be a multiple of
.
MemoryTypes.Info.getHotAddEnabled()
is true and
the virtual machine is running.hotAddIncrementSizeMiB
- New value for the property.public MemoryTypes.Info.Builder setHotAddLimitMiB(java.lang.Long hotAddLimitMiB)
MemoryTypes.Info.getHotAddEnabled()
is true and
the virtual machine is running.hotAddLimitMiB
- New value for the property.public MemoryTypes.Info build()