ChenSammi commented on code in PR #561:
URL: https://github.com/apache/ratis/pull/561#discussion_r922932298


##########
ratis-server-api/src/main/java/org/apache/ratis/server/RaftServerConfigKeys.java:
##########
@@ -486,6 +486,16 @@ static boolean installSnapshotEnabled(RaftProperties 
properties) {
       static void setInstallSnapshotEnabled(RaftProperties properties, boolean 
shouldInstallSnapshot) {
         setBoolean(properties::setBoolean, INSTALL_SNAPSHOT_ENABLED_KEY, 
shouldInstallSnapshot);
       }
+
+      String HEARTBEAT_CHANNEL_KEY = PREFIX + ".heartbeat.channel";
+      boolean HEARTBEAT_CHANNEL_DEFAULT = true;
+      static boolean heartbeatChannel(RaftProperties properties) {
+        return getBoolean(properties::getBoolean, HEARTBEAT_CHANNEL_KEY,
+            HEARTBEAT_CHANNEL_DEFAULT, getDefaultLog());
+      }
+      static void setHeartbeatChannel(RaftProperties properties, boolean 
useCached) {
+        setBoolean(properties::setBoolean, HEARTBEAT_CHANNEL_KEY, useCached);
+      }

Review Comment:
   Sure. 



-- 
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