public class ResourceLimits extends Object
| Constructor and Description |
|---|
ResourceLimits() |
| Modifier and Type | Method and Description |
|---|---|
Double |
cpu()
Get the CPU limit of this container instance.
|
GpuResource |
gpu()
Get the GPU limit of this container instance.
|
Double |
memoryInGB()
Get the memory limit in GB of this container instance.
|
ResourceLimits |
withCpu(Double cpu)
Set the CPU limit of this container instance.
|
ResourceLimits |
withGpu(GpuResource gpu)
Set the GPU limit of this container instance.
|
ResourceLimits |
withMemoryInGB(Double memoryInGB)
Set the memory limit in GB of this container instance.
|
public Double memoryInGB()
public ResourceLimits withMemoryInGB(Double memoryInGB)
memoryInGB - the memoryInGB value to setpublic Double cpu()
public ResourceLimits withCpu(Double cpu)
cpu - the cpu value to setpublic GpuResource gpu()
public ResourceLimits withGpu(GpuResource gpu)
gpu - the gpu value to setCopyright © 2019. All rights reserved.