docs: @Override
    public RetryDecision onRequestAborted(
        @NonNull Request request, @NonNull Throwable error, int retryCount) {
  
      RetryDecision decision =
          (error instanceof ClosedConnectionException || error instanceof HeartbeatException)
              ? RetryDecision.RETRY_NEXT
              : RetryDecision.RETHROW;
  
      if (decision == RetryDecision.RETRY_NEXT && LOG.isTraceEnabled()) {
        LOG.trace(RETRYING_ON_ABORTED, logPrefix, retryCount, error);
      }
  
      return decision;
    }