Package org.cdk8s.plus24.k8s
Class LimitedPriorityLevelConfigurationV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.LimitedPriorityLevelConfigurationV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LimitedPriorityLevelConfigurationV1Beta1>
- Enclosing interface:
- LimitedPriorityLevelConfigurationV1Beta1
@Stability(Stable) public static final class LimitedPriorityLevelConfigurationV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<LimitedPriorityLevelConfigurationV1Beta1>
A builder forLimitedPriorityLevelConfigurationV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LimitedPriorityLevelConfigurationV1Beta1.Builder
assuredConcurrencyShares(Number assuredConcurrencyShares)
Sets the value ofLimitedPriorityLevelConfigurationV1Beta1.getAssuredConcurrencyShares()
LimitedPriorityLevelConfigurationV1Beta1
build()
Builds the configured instance.LimitedPriorityLevelConfigurationV1Beta1.Builder
limitResponse(LimitResponseV1Beta1 limitResponse)
Sets the value ofLimitedPriorityLevelConfigurationV1Beta1.getLimitResponse()
-
-
-
Method Detail
-
assuredConcurrencyShares
@Stability(Stable) public LimitedPriorityLevelConfigurationV1Beta1.Builder assuredConcurrencyShares(Number assuredConcurrencyShares)
Sets the value ofLimitedPriorityLevelConfigurationV1Beta1.getAssuredConcurrencyShares()
- Parameters:
assuredConcurrencyShares
- `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level:ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) )
bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30.
- Returns:
this
-
limitResponse
@Stability(Stable) public LimitedPriorityLevelConfigurationV1Beta1.Builder limitResponse(LimitResponseV1Beta1 limitResponse)
Sets the value ofLimitedPriorityLevelConfigurationV1Beta1.getLimitResponse()
- Parameters:
limitResponse
- `limitResponse` indicates what to do with requests that can not be executed right now.- Returns:
this
-
build
@Stability(Stable) public LimitedPriorityLevelConfigurationV1Beta1 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LimitedPriorityLevelConfigurationV1Beta1>
- Returns:
- a new instance of
LimitedPriorityLevelConfigurationV1Beta1
- Throws:
NullPointerException
- if any required attribute was not provided
-
-