Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for updateFailureThreshold (0.31 sec)

  1. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                // Update threshold
                dynamicCircuitBreaker.updateFailureThreshold(7);
                assertEquals(7, dynamicCircuitBreaker.getCurrentFailureThreshold(), "Threshold should be updated");
    
                // Test that invalid threshold is ignored
                dynamicCircuitBreaker.updateFailureThreshold(-1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/SmbCircuitBreaker.java

            return failureThreshold;
        }
    
        /**
         * Update failure threshold (for dynamic adjustment)
         *
         * @param newThreshold the new failure threshold
         */
        public void updateFailureThreshold(int newThreshold) {
            if (newThreshold > 0) {
                int oldThreshold = this.failureThreshold;
                this.failureThreshold = newThreshold;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
Back to top