TaskSpecRestartPolicy
Table of Contents
- $condition : string|null
- Condition for restart.
- $delay : int|null
- Delay between restart attempts.
- $maxAttempts : int|null
- Maximum attempts to restart a given container before giving up.
- $window : int|null
- Windows is the time window used to evaluate the restart policy.
- getCondition() : string|null
- Condition for restart.
- getDelay() : int|null
- Delay between restart attempts.
- getMaxAttempts() : int|null
- Maximum attempts to restart a given container before giving up.
- getWindow() : int|null
- Windows is the time window used to evaluate the restart policy.
- setCondition() : self
- Condition for restart.
- setDelay() : self
- Delay between restart attempts.
- setMaxAttempts() : self
- Maximum attempts to restart a given container before giving up.
- setWindow() : self
- Windows is the time window used to evaluate the restart policy.
Properties
$condition
Condition for restart.
protected
string|null
$condition
$delay
Delay between restart attempts.
protected
int|null
$delay
$maxAttempts
Maximum attempts to restart a given container before giving up.
protected
int|null
$maxAttempts
= 0
$window
Windows is the time window used to evaluate the restart policy.
protected
int|null
$window
= 0
Methods
getCondition()
Condition for restart.
public
getCondition() : string|null
Return values
string|null —getDelay()
Delay between restart attempts.
public
getDelay() : int|null
Return values
int|null —getMaxAttempts()
Maximum attempts to restart a given container before giving up.
public
getMaxAttempts() : int|null
(default value is 0, which is ignored).
Return values
int|null —getWindow()
Windows is the time window used to evaluate the restart policy.
public
getWindow() : int|null
(default value is 0, which is unbounded).
Return values
int|null —setCondition()
Condition for restart.
public
setCondition(string|null $condition) : self
Parameters
- $condition : string|null
Return values
self —setDelay()
Delay between restart attempts.
public
setDelay(int|null $delay) : self
Parameters
- $delay : int|null
Return values
self —setMaxAttempts()
Maximum attempts to restart a given container before giving up.
public
setMaxAttempts(int|null $maxAttempts) : self
(default value is 0, which is ignored).
Parameters
- $maxAttempts : int|null
Return values
self —setWindow()
Windows is the time window used to evaluate the restart policy.
public
setWindow(int|null $window) : self
(default value is 0, which is unbounded).
Parameters
- $window : int|null