Class Lifecycle.Jsii$Proxy

  • All Implemented Interfaces:
    Lifecycle, software.amazon.jsii.JsiiSerializable
    Enclosing interface:
    Lifecycle

    @Stability(Stable)
    @Internal
    public static final class Lifecycle.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements Lifecycle
    An implementation for Lifecycle
    • Nested Class Summary

      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Jsii$Proxy​(Lifecycle.Builder builder)
      Constructor that initializes the object based on literal property values passed by the Lifecycle.Builder.
      protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
    • 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​(Lifecycle.Builder builder)
        Constructor that initializes the object based on literal property values passed by the Lifecycle.Builder.
    • Method Detail

      • getPostStart

        public final LifecycleHandler getPostStart()
        Description copied from interface: Lifecycle
        PostStart is called immediately after a container is created.

        If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks

        Specified by:
        getPostStart in interface Lifecycle
      • getPreStop

        public final LifecycleHandler getPreStop()
        Description copied from interface: Lifecycle
        PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc.

        The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks

        Specified by:
        getPreStop in interface Lifecycle
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object