Implements retry strategy based on db error codes and wait interval.
__construct(array $errorCodes, int $retryInterval)
DB-specific error codes that allow retrying
Seconds to wait before allowing next retry, 0 for no wait.
shouldRetry(\Exception $exception, int $retryCount)
Returns true if the action can be retried, false otherwise.
The exception that caused the action to fail
The number of times action has been retried
Whether or not it is OK to retry the action
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.