ServiceSpecRollbackConfig
Table of Contents
- $delay : int|null
- Amount of time between rollback iterations, in nanoseconds.
- $failureAction : string|null
- Action to take if an rolled back task fails to run, or stops.
- $maxFailureRatio : float|null
- The fraction of tasks that may fail during a rollback before the.
- $monitor : int|null
- Amount of time to monitor each rolled back task for failures, in.
- $order : string|null
- The order of operations when rolling back a task. Either the old.
- $parallelism : int|null
- Maximum number of tasks to be rolled back in one iteration (0 means.
- getDelay() : int|null
- Amount of time between rollback iterations, in nanoseconds.
- getFailureAction() : string|null
- Action to take if an rolled back task fails to run, or stops.
- getMaxFailureRatio() : float|null
- The fraction of tasks that may fail during a rollback before the.
- getMonitor() : int|null
- Amount of time to monitor each rolled back task for failures, in.
- getOrder() : string|null
- The order of operations when rolling back a task. Either the old.
- getParallelism() : int|null
- Maximum number of tasks to be rolled back in one iteration (0 means.
- setDelay() : self
- Amount of time between rollback iterations, in nanoseconds.
- setFailureAction() : self
- Action to take if an rolled back task fails to run, or stops.
- setMaxFailureRatio() : self
- The fraction of tasks that may fail during a rollback before the.
- setMonitor() : self
- Amount of time to monitor each rolled back task for failures, in.
- setOrder() : self
- The order of operations when rolling back a task. Either the old.
- setParallelism() : self
- Maximum number of tasks to be rolled back in one iteration (0 means.
Properties
$delay
Amount of time between rollback iterations, in nanoseconds.
protected
int|null
$delay
$failureAction
Action to take if an rolled back task fails to run, or stops.
protected
string|null
$failureAction
$maxFailureRatio
The fraction of tasks that may fail during a rollback before the.
protected
float|null
$maxFailureRatio
= 0
$monitor
Amount of time to monitor each rolled back task for failures, in.
protected
int|null
$monitor
$order
The order of operations when rolling back a task. Either the old.
protected
string|null
$order
$parallelism
Maximum number of tasks to be rolled back in one iteration (0 means.
protected
int|null
$parallelism
Methods
getDelay()
Amount of time between rollback iterations, in nanoseconds.
public
getDelay() : int|null
Return values
int|null —getFailureAction()
Action to take if an rolled back task fails to run, or stops.
public
getFailureAction() : string|null
running during the rollback.
Return values
string|null —getMaxFailureRatio()
The fraction of tasks that may fail during a rollback before the.
public
getMaxFailureRatio() : float|null
between 0 and 1.
Return values
float|null —getMonitor()
Amount of time to monitor each rolled back task for failures, in.
public
getMonitor() : int|null
nanoseconds.
Return values
int|null —getOrder()
The order of operations when rolling back a task. Either the old.
public
getOrder() : string|null
is started before the old task is shut down.
Return values
string|null —getParallelism()
Maximum number of tasks to be rolled back in one iteration (0 means.
public
getParallelism() : int|null
unlimited parallelism).
Return values
int|null —setDelay()
Amount of time between rollback iterations, in nanoseconds.
public
setDelay(int|null $delay) : self
Parameters
- $delay : int|null
Return values
self —setFailureAction()
Action to take if an rolled back task fails to run, or stops.
public
setFailureAction(string|null $failureAction) : self
running during the rollback.
Parameters
- $failureAction : string|null
Return values
self —setMaxFailureRatio()
The fraction of tasks that may fail during a rollback before the.
public
setMaxFailureRatio(float|null $maxFailureRatio) : self
between 0 and 1.
Parameters
- $maxFailureRatio : float|null
Return values
self —setMonitor()
Amount of time to monitor each rolled back task for failures, in.
public
setMonitor(int|null $monitor) : self
nanoseconds.
Parameters
- $monitor : int|null
Return values
self —setOrder()
The order of operations when rolling back a task. Either the old.
public
setOrder(string|null $order) : self
is started before the old task is shut down.
Parameters
- $order : string|null
Return values
self —setParallelism()
Maximum number of tasks to be rolled back in one iteration (0 means.
public
setParallelism(int|null $parallelism) : self
unlimited parallelism).
Parameters
- $parallelism : int|null