Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getCurrentFailureThreshold (0.62 sec)

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

                int initialThreshold = dynamicCircuitBreaker.getCurrentFailureThreshold();
                assertEquals(5, initialThreshold, "Initial threshold should be 5");
    
                // Update threshold
                dynamicCircuitBreaker.updateFailureThreshold(7);
                assertEquals(7, dynamicCircuitBreaker.getCurrentFailureThreshold(), "Threshold should be updated");
    
    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

            transitionTo(State.OPEN);
        }
    
        /**
         * Get current failure threshold (may be dynamically adjusted)
         *
         * @return current failure threshold
         */
        public int getCurrentFailureThreshold() {
            return failureThreshold;
        }
    
        /**
         * Update failure threshold (for dynamic adjustment)
         *
         * @param newThreshold the new failure threshold
         */
    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