Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for executeWithCircuitBreaker (0.17 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

            String result = circuitBreaker.executeWithCircuitBreaker(() -> "success");
            assertEquals("success", result, "Operation should succeed");
            assertEquals(State.HALF_OPEN, circuitBreaker.getState(), "Circuit should be in HALF_OPEN");
    
            // One more success should close the circuit (threshold is 2)
            circuitBreaker.executeWithCircuitBreaker(() -> "success2");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 23.2K bytes
    - Click Count (0)
Back to Top