Interface RetryStrategyInterface
Used to instruct a CommandRetry object on whether or not a retry for an action should be performed
Namespace: Cake\Core\Retry
Method Summary
Method Detail
shouldRetry() public
shouldRetry(\Exception $exception, int $retryCount)
Returns true if the action can be retried, false otherwise.
Parameters
-
\Exception
$exception The exception that caused the action to fail
-
int
$retryCount The number of times the action has been already called
Returns
bool
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.
https://api.cakephp.org/4.0/interface-Cake.Core.Retry.RetryStrategyInterface.html