int oldBatchSize = batchSize; batchSize = 0;
    public void backgroundFlush(Connection con, Set filter) throws SQLException {        if (closed) {            throw new SQLException("Batch is closed");        }        long start = System.currentTimeMillis();        List jobs = batchWriter.write(con, tables, filter);        long middle = System.currentTimeMillis();        putFlushJobs(jobs);        int oldBatchSize = batchSize;        batchSize = 0;        long end = System.currentTimeMillis();        if ((end > middle + 10) && (lastDutyCycle < 75)) {            LOG.info("Enqueued batch of size " + oldBatchSize + " to flush - took "                    + (middle - start) + " + " + (end - middle) + " ms");        } else {            LOG.debug("Enqueued batch of size " + oldBatchSize + " to flush - took "                    + (middle - start) + " + " + (end - middle) + " ms");        }    }