ServiceTaskSpecRestartPolicy constructor
const
ServiceTaskSpecRestartPolicy({})
Creates a new ServiceTaskSpecRestartPolicy.
condition Condition for restart
delay Delay between restart attempts (ms|s|m|h)
maxAttempts Maximum attempts to restart a given container before giving up (default value is 0, which is ignored)
window The time window used to evaluate the restart policy (default value is 0, which is unbounded) (ms|s|m|h)
Implementation
const ServiceTaskSpecRestartPolicy({
this.condition,
this.delay,
this.maxAttempts,
this.window,
});