Verifica se deve fazer retry baseado no nĂºmero de tentativas
static bool shouldRetry(int attemptCount) { return attemptCount < maxRetryAttempts; }