presto-hive/src/main/java/io/prestosql/plugin/hive/util/RetryDriver.java/RetryDriver/maxAttempts
class RetryDriver:    public final RetryDriver maxAttempts(int maxAttempts)
    {
        return new RetryDriver(maxAttempts, minSleepTime, maxSleepTime, scaleFactor, maxRetryTime, exceptionWhiteList, retryRunnable);
    }