- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for successThreshold (1.22 sec)
-
src/main/java/jcifs/util/SimpleCircuitBreaker.java
* @param successThreshold number of successes in half-open to close circuit * @param timeoutMillis timeout before attempting to close open circuit */ public SimpleCircuitBreaker(String name, int failureThreshold, int successThreshold, long timeoutMillis) { this.name = name; this.failureThreshold = failureThreshold; this.successThreshold = successThreshold;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/jcifs/util/SmbCircuitBreaker.java
} public SmbCircuitBreaker(String name, int failureThreshold, int successThreshold, long resetTimeoutMillis, long halfOpenMaxAttempts, boolean dynamicThresholdEnabled, boolean backpressureEnabled, int maxConcurrentRequests) { this.name = name; this.failureThreshold = failureThreshold; this.successThreshold = successThreshold;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 33.4K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
assertEquals("success 0", result, "Should execute in HALF_OPEN"); assertEquals(State.HALF_OPEN, circuitBreaker.getState(), "Should be in HALF_OPEN after first success"); // Need successThreshold (2) consecutive successes to close the circuit // Second success should close the circuit (threshold is 2) result = circuitBreaker.executeWithCircuitBreaker(() -> "success 1");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0)