Class V1Lifecycle
java.lang.Object
io.kubernetes.client.openapi.models.V1Lifecycle
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-22T21:20:49.874193Z[Etc/UTC]")
public class V1Lifecycle
extends Object
Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get postStartGet preStopStopSignal defines which signal will be sent to a container when it is being stopped.int
hashCode()
postStart
(V1LifecycleHandler postStart) preStop
(V1LifecycleHandler preStop) void
setPostStart
(V1LifecycleHandler postStart) void
setPreStop
(V1LifecycleHandler preStop) void
setStopSignal
(String stopSignal) stopSignal
(String stopSignal) toString()
-
Field Details
-
SERIALIZED_NAME_POST_START
- See Also:
-
SERIALIZED_NAME_PRE_STOP
- See Also:
-
SERIALIZED_NAME_STOP_SIGNAL
- See Also:
-
-
Constructor Details
-
V1Lifecycle
public V1Lifecycle()
-
-
Method Details
-
postStart
-
getPostStart
Get postStart- Returns:
- postStart
-
setPostStart
-
preStop
-
getPreStop
Get preStop- Returns:
- preStop
-
setPreStop
-
stopSignal
-
getStopSignal
StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name- Returns:
- stopSignal
-
setStopSignal
-
equals
-
hashCode
public int hashCode() -
toString
-