| Modifier and Type | Method and Description |
|---|---|
ResourceLimits |
ResourceRequirements.limits()
Get the resource limits of this container instance.
|
ResourceLimits |
ResourceLimits.withCpu(Double cpu)
Set the CPU limit of this container instance.
|
ResourceLimits |
ResourceLimits.withGpu(GpuResource gpu)
Set the GPU limit of this container instance.
|
ResourceLimits |
ResourceLimits.withMemoryInGB(Double memoryInGB)
Set the memory limit in GB of this container instance.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceRequirements |
ResourceRequirements.withLimits(ResourceLimits limits)
Set the resource limits of this container instance.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/