/** * Sets whether to flush logs to disk on commit. * * @param flushOnCommit whether to flush logs to disk on commit * @return the Raft partition group builder */ public Builder withFlushOnCommit(boolean flushOnCommit) { config.getStorageConfig().setFlushOnCommit(flushOnCommit); return this; }