ivankelly commented on a change in pull request #817: Client times out requests 
in batch rather than individually
URL: https://github.com/apache/bookkeeper/pull/817#discussion_r156048562
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ClientConfiguration.java
 ##########
 @@ -678,11 +679,28 @@ public ClientConfiguration setReadEntryTimeout(int 
timeout) {
     }
 
     /**
-     * Get the interval between successive executions of the 
PerChannelBookieClient's
-     * TimeoutTask. This value is in milliseconds. Every X milliseconds, the 
timeout task
-     * will be executed and it will error out entries that have timed out.
+     * Get the interval between successive executions of the operation timeout 
monitor. This value is in seconds. Every
+     * X seconds, the timeout monitor will be executed and it will error out 
entries that have timed out.
+     *
+     * @return the interval at which request timeouts will be checked
+     */
+    public long getTimeoutMonitorIntervalSec() {
+        return getLong(TIMEOUT_MONITOR_INTERVAL_SEC,
+                Math.max(Math.min(getAddEntryTimeout(), getReadEntryTimeout()) 
/ 2, 1));
+    }
+
+    public ClientConfiguration setTimeoutMonitorIntervalSec(long 
timeoutInterval) {
 
 Review comment:
   done

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to