private boolean isRetryable(List<Attempt> reservedAttempts) {
        if (reservedAttempts.isEmpty()) {
            LOG.error("attempts is empty, just discards");
            return false;
        }
        for (Attempt attempt : reservedAttempts) {
            String errorCode = attempt.getErrorCode();
            if (!errorCode.equals(ErrorCodes.SpeedQuotaExceed)) {
                return false;
            }
        }
        return true;
    }
If send failed.

@param result Send result.
inlong-sort-standalone/sort-standalone-source/src/main/java/org/apache/inlong/sort/standalone/sink/cls/ClsCallback.java