TaskSpecRestartPolicy

constructor(condition: TaskSpecRestartPolicy.Condition? = null, delay: Long? = null, maxAttempts: Long? = 0, window: Long? = 0)

Parameters

condition

Condition for restart.

delay

Delay between restart attempts.

maxAttempts

Maximum attempts to restart a given container before giving up (default value is 0, which is ignored).

window

Windows is the time window used to evaluate the restart policy (default value is 0, which is unbounded).