Interface RetryStrategyInterface
Used to instruct a CommandRetry object on whether a retry for an action should be performed
Namespace: Cake\Core\Retry
Method Summary
-
shouldRetry() public
Returns true if the action can be retried, false otherwise.
Method Detail
shouldRetry() ΒΆ public
shouldRetry(Exception $exception, int $retryCount): bool
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 action has been retried
Returns
bool