Package org.cdk8s.plus24
Class TcpSocketProbeOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.TcpSocketProbeOptions.Jsii$Proxy
-
- All Implemented Interfaces:
ProbeOptions
,TcpSocketProbeOptions
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- TcpSocketProbeOptions
@Stability(Stable) @Internal public static final class TcpSocketProbeOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TcpSocketProbeOptions
An implementation forTcpSocketProbeOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.TcpSocketProbeOptions
TcpSocketProbeOptions.Builder, TcpSocketProbeOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(TcpSocketProbeOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theTcpSocketProbeOptions.Builder
.protected
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
$jsii$toJson()
boolean
equals(Object o)
Number
getFailureThreshold()
Minimum consecutive failures for the probe to be considered failed after having succeeded.String
getHost()
The host name to connect to on the container.org.cdk8s.Duration
getInitialDelaySeconds()
Number of seconds after the container has started before liveness probes are initiated.org.cdk8s.Duration
getPeriodSeconds()
How often (in seconds) to perform the probe.Number
getPort()
The TCP port to connect to on the container.Number
getSuccessThreshold()
Minimum consecutive successes for the probe to be considered successful after having failed.org.cdk8s.Duration
getTimeoutSeconds()
Number of seconds after which the probe times out.int
hashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(TcpSocketProbeOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theTcpSocketProbeOptions.Builder
.
-
-
Method Detail
-
getHost
public final String getHost()
Description copied from interface:TcpSocketProbeOptions
The host name to connect to on the container.Default: - defaults to the pod IP
- Specified by:
getHost
in interfaceTcpSocketProbeOptions
-
getPort
public final Number getPort()
Description copied from interface:TcpSocketProbeOptions
The TCP port to connect to on the container.Default: - defaults to `container.port`.
- Specified by:
getPort
in interfaceTcpSocketProbeOptions
-
getFailureThreshold
public final Number getFailureThreshold()
Description copied from interface:ProbeOptions
Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3. Minimum value is 1.
Default: 3
- Specified by:
getFailureThreshold
in interfaceProbeOptions
-
getInitialDelaySeconds
public final org.cdk8s.Duration getInitialDelaySeconds()
Description copied from interface:ProbeOptions
Number of seconds after the container has started before liveness probes are initiated.Default: - immediate
- Specified by:
getInitialDelaySeconds
in interfaceProbeOptions
- See Also:
- https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
-
getPeriodSeconds
public final org.cdk8s.Duration getPeriodSeconds()
Description copied from interface:ProbeOptions
How often (in seconds) to perform the probe.Default to 10 seconds. Minimum value is 1.
Default: Duration.seconds(10) Minimum value is 1.
- Specified by:
getPeriodSeconds
in interfaceProbeOptions
-
getSuccessThreshold
public final Number getSuccessThreshold()
Description copied from interface:ProbeOptions
Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1.Must be 1 for liveness and startup. Minimum value is 1.
Default: 1 Must be 1 for liveness and startup. Minimum value is 1.
- Specified by:
getSuccessThreshold
in interfaceProbeOptions
-
getTimeoutSeconds
public final org.cdk8s.Duration getTimeoutSeconds()
Description copied from interface:ProbeOptions
Number of seconds after which the probe times out.Defaults to 1 second. Minimum value is 1.
Default: Duration.seconds(1)
- Specified by:
getTimeoutSeconds
in interfaceProbeOptions
- See Also:
- https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-