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

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

package org.cdk8s.plus23;

/**
 * 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.75.0 (build 63bb957)", date = "2023-02-21T09:46:03.708Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Jsii(module = org.cdk8s.plus23.$Module.class, fqn = "cdk8s-plus-23.WorkloadScheduling") public class WorkloadScheduling extends org.cdk8s.plus23.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.plus23.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.plus23.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