Interface RetryStrategyInterface
Used to instruct a CommandRetry object on whether or not a retry for an action should be performed
Method Summary
-
shouldRetry() public
Returns true if the action can be retried, false otherwise.
Method Detail
shouldRetry() 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
boolean
Whether or not it is OK to retry the action
Whether or not it is OK to retry the action