- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for allowsRequests (0.66 sec)
-
src/test/java/jcifs/util/SimpleCircuitBreakerTest.java
} @Test @DisplayName("Test initial state is CLOSED") void testInitialState() { assertEquals(SimpleCircuitBreaker.State.CLOSED, circuitBreaker.getState()); assertTrue(circuitBreaker.allowsRequests()); } @Test @DisplayName("Test successful calls in CLOSED state") void testSuccessfulCalls() throws Exception { String result = circuitBreaker.call(() -> "success");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.6K bytes - Viewed (0) -
src/main/java/jcifs/util/SimpleCircuitBreaker.java
return (double) totalSuccesses.get() / total; } /** * Check if circuit breaker allows requests * * @return true if requests are allowed */ public boolean allowsRequests() { State current = evaluateState(); return current != State.OPEN; } /** * Get the circuit breaker name * * @return name */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.3K bytes - Viewed (0)