public function canTryAgain($attempt, $ignoreTransactionLevel = false)
{
$canByAttempt = $attempt < $this->reconnectAttempts;
$canByTransactionNestingLevel = $ignoreTransactionLevel ? true : 0 === $this->getTransactionNestingLevel();
return $canByAttempt && $canByTransactionNestingLevel;
}