All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cdk8s.plus31.WorkloadScheduling Maven / Gradle / Ivy

package org.cdk8s.plus31;

/**
 * Controls the pod scheduling strategy of this workload.
 * 

* It offers some additional API's on top of the core pod scheduling. */ @javax.annotation.Generated(value = "jsii-pacmak/1.105.0 (build 0a2adcb)", date = "2024-11-15T12:15:24.918Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Jsii(module = org.cdk8s.plus31.$Module.class, fqn = "cdk8s-plus-31.WorkloadScheduling") public class WorkloadScheduling extends org.cdk8s.plus31.PodScheduling { protected WorkloadScheduling(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected WorkloadScheduling(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * @param instance This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public WorkloadScheduling(final @org.jetbrains.annotations.NotNull org.cdk8s.plus31.AbstractPod instance) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(instance, "instance is required") }); } /** * Spread the pods in this workload by the topology key. *

* A spread is a separation of the pod from itself and is used to * balance out pod replicas across a given topology. *

* @param options */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void spread(final @org.jetbrains.annotations.Nullable org.cdk8s.plus31.WorkloadSchedulingSpreadOptions options) { software.amazon.jsii.Kernel.call(this, "spread", software.amazon.jsii.NativeType.VOID, new Object[] { options }); } /** * Spread the pods in this workload by the topology key. *

* A spread is a separation of the pod from itself and is used to * balance out pod replicas across a given topology. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void spread() { software.amazon.jsii.Kernel.call(this, "spread", software.amazon.jsii.NativeType.VOID); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy