Class Lifecycle
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.Lifecycle
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class Lifecycle extends java.lang.Object implements com.marcnuri.yakc.model.Model
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Lifecycle.Builder
-
Constructor Summary
Constructors Constructor Description Lifecycle()
Lifecycle(LifecycleHandler postStart, LifecycleHandler preStop)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Lifecycle.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
LifecycleHandler
getPostStart()
LifecycleHandler
getPreStop()
int
hashCode()
void
setPostStart(LifecycleHandler postStart)
void
setPreStop(LifecycleHandler preStop)
Lifecycle.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Lifecycle
public Lifecycle(LifecycleHandler postStart, LifecycleHandler preStop)
-
Lifecycle
public Lifecycle()
-
-
Method Detail
-
builder
public static Lifecycle.Builder builder()
-
toBuilder
public Lifecycle.Builder toBuilder()
-
getPostStart
public LifecycleHandler getPostStart()
-
getPreStop
public LifecycleHandler getPreStop()
-
setPostStart
public void setPostStart(LifecycleHandler postStart)
-
setPreStop
public void setPreStop(LifecycleHandler preStop)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-