Class ExemptPriorityLevelConfiguration
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.flowcontrol.v1.ExemptPriorityLevelConfiguration
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ExemptPriorityLevelConfigurationBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ExemptPriorityLevelConfiguration extends Object implements io.fabric8.kubernetes.api.builder.Editable<ExemptPriorityLevelConfigurationBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExemptPriorityLevelConfiguration()No args constructor for use in serializationExemptPriorityLevelConfiguration(Integer lendablePercent, Integer nominalConcurrencyShares)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExemptPriorityLevelConfigurationBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetLendablePercent()`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels.IntegergetNominalConcurrencyShares()`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetLendablePercent(Integer lendablePercent)`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels.voidsetNominalConcurrencyShares(Integer nominalConcurrencyShares)`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level.ExemptPriorityLevelConfigurationBuildertoBuilder()
-
-
-
Method Detail
-
getLendablePercent
public Integer getLendablePercent()
`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
-
setLendablePercent
public void setLendablePercent(Integer lendablePercent)
`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
-
getNominalConcurrencyShares
public Integer getNominalConcurrencyShares()
`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)
Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.
-
setNominalConcurrencyShares
public void setNominalConcurrencyShares(Integer nominalConcurrencyShares)
`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)
Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.
-
edit
public ExemptPriorityLevelConfigurationBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ExemptPriorityLevelConfigurationBuilder>
-
toBuilder
public ExemptPriorityLevelConfigurationBuilder toBuilder()
-
-