SincereXIA commented on a change in pull request #611:
URL: https://github.com/apache/ratis/pull/611#discussion_r814805946



##########
File path: 
ratis-server-api/src/main/java/org/apache/ratis/server/RaftServerConfigKeys.java
##########
@@ -348,6 +348,27 @@ static void setForceSyncNum(RaftProperties properties, int 
forceSyncNum) {
       setInt(properties::setInt, FORCE_SYNC_NUM_KEY, forceSyncNum);
     }
 
+
+    String ASYNC_FLUSH_ENABLED_KEY = PREFIX + ".async.flush.enabled";
+    boolean ASYNC_FLUSH_ENABLED_DEFAULT = false;
+    static boolean asyncFlushEnabled(RaftProperties properties) {
+      return getBoolean(properties::getBoolean,
+              ASYNC_FLUSH_ENABLED_KEY, ASYNC_FLUSH_ENABLED_DEFAULT, 
getDefaultLog());
+    }
+    static void setAsyncFlushEnabled(RaftProperties properties, boolean 
asyncFlush) {
+      setBoolean(properties::setBoolean, ASYNC_FLUSH_ENABLED_KEY, asyncFlush);
+    }
+
+    String ASYNC_FLUSH_MINIMUM_INTERVAL_KEY = PREFIX + 
".async.flush.minimum.interval";

Review comment:
       Yes, I will rename it




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to