Package org.cdk8s.plus24
Class ContainerLifecycle.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.ContainerLifecycle.Jsii$Proxy
-
- All Implemented Interfaces:
ContainerLifecycle
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ContainerLifecycle
@Stability(Stable) @Internal public static final class ContainerLifecycle.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ContainerLifecycle
An implementation forContainerLifecycle
-
-
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.ContainerLifecycle
ContainerLifecycle.Builder, ContainerLifecycle.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(ContainerLifecycle.Builder builder)
Constructor that initializes the object based on literal property values passed by theContainerLifecycle.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)
Handler
getPostStart()
This hook is executed immediately after a container is created.Handler
getPreStop()
This hook is called immediately before a container is terminated due to an API request or management event such as a liveness/startup probe failure, preemption, resource contention and others.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(ContainerLifecycle.Builder builder)
Constructor that initializes the object based on literal property values passed by theContainerLifecycle.Builder
.
-
-
Method Detail
-
getPostStart
public final Handler getPostStart()
Description copied from interface:ContainerLifecycle
This hook is executed immediately after a container is created.However, there is no guarantee that the hook will execute before the container ENTRYPOINT.
Default: - No post start handler.
- Specified by:
getPostStart
in interfaceContainerLifecycle
-
getPreStop
public final Handler getPreStop()
Description copied from interface:ContainerLifecycle
This hook is called immediately before a container is terminated due to an API request or management event such as a liveness/startup probe failure, preemption, resource contention and others.A call to the PreStop hook fails if the container is already in a terminated or completed state and the hook must complete before the TERM signal to stop the container can be sent. The Pod's termination grace period countdown begins before the PreStop hook is executed, so regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. No parameters are passed to the handler.
Default: - No pre stop handler.
- Specified by:
getPreStop
in interfaceContainerLifecycle
- See Also:
- https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-