RetryStrategyInterface
in
Used to instruct a CommandRetry object on whether a retry for an action should be performed
Table of Contents
Methods
- shouldRetry() : bool
- Returns true if the action can be retried, false otherwise.
Methods
shouldRetry()
Returns true if the action can be retried, false otherwise.
public
shouldRetry(Exception $exception, int $retryCount) : bool
Parameters
- $exception : Exception
-
The exception that caused the action to fail
- $retryCount : int
-
The number of times action has been retried
Return values
bool —Whether it is OK to retry the action