public int attempt() {
        return attempt;
    }
@return the number of attempts made to execute the current operation.
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/errors/ProcessingContext.java