private function canRetry()
    {
        if ($this->isUnlimitedAttempts()) {
            return true;
        }

        $this->attempts++;

        return $this->attempts < $this->maxAttempts;
    }
private function canRetry()
    {
        if ($this->isUnlimitedAttempts()) {
            return true;
        }

        $this->attempts++;

        return $this->attempts < $this->maxAttempts;
    }
private function canRetry ( ) { if ( $ this -> isUnlimitedAttempts ( ) ) { return true ; } $ this -> attempts ++ ; return $ this -> attempts < $ this -> maxAttempts ; }
Check if can retry a connection

@return bool
Check if can retry a connection