\Cake\Core\RetryRetryStrategyInterface

Used to instruct a CommandRetry object on whether or not a retry for an action should be performed

Summary

Methods
Constants
shouldRetry()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

shouldRetry()

shouldRetry(\Exception  $exception, integer  $retryCount) : boolean

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

boolean —

Whether or not it is OK to retry the action