Interface RetryStrategyInterface
Used to instruct a CommandRetry object on whether or not a retry for an action should be performed
Method Summary
-  shouldRetry() publicReturns true if the action can be retried, false otherwise.
 
Method Detail
shouldRetry()source public
shouldRetry( Exception $exception , integer $retryCount )
Returns true if the action can be retried, false otherwise.
Parameters
-  Exception 
$exception - The exception that caused the action to fail
 -  integer 
$retryCount - The number of times the action has been already called
 
Returns
booleanWhether 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/3.8/class-Cake.Core.Retry.RetryStrategyInterface.html