LifecycleHandler constructor
const
LifecycleHandler({
- Input<
ExecAction> ? exec, - Input<
HTTPGetAction> ? httpGet, - Input<
SleepAction> ? sleep, - Input<
TCPSocketAction> ? tcpSocket,
Creates a new LifecycleHandler.
exec Exec specifies a command to execute in the container.
httpGet HTTPGet specifies an HTTP GET request to perform.
sleep Sleep represents a duration that the container should sleep.
tcpSocket Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.
Implementation
const LifecycleHandler({
this.exec,
this.httpGet,
this.sleep,
this.tcpSocket,
});