public boolean flushedSinceLastChecked() {
        boolean oldValue = flushedSinceLastChecked;
        flushedSinceLastChecked = false;
        return oldValue;
    }
Returns true if the log was flushed since the last time this method was called.
raft/src/test/java/org/apache/kafka/raft/MockLog.java