private function setRetryAttemptsIfConfigured()
    {
        if (isset($this->config['connection_attempts']) &&
            is_numeric($this->config['connection_attempts'])) {
            $this->maxAttempts = $this->config['connection_attempts'];
        }
    }