public function countAttemptQueueDelay()
{
$strategy = $this->getAttemptStrategy();
$attempts = $this->getAttempts();
$delay = $this->getAttemptDelay();
if ($attempts === 0) {
return 0;
}
return (int) ($strategy === self::P_ATTEMPT_STRATEGY_T_EXP ? round($delay * exp($attempts - 1)) : round($delay));
}