Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CircuitBreakerOpenException (0.19 sec)

  1. src/main/java/jcifs/util/SimpleCircuitBreaker.java

            }
        }
    
        /**
         * Exception thrown when circuit breaker is open
         */
        public static class CircuitBreakerOpenException extends Exception {
            private static final long serialVersionUID = 1L;
    
            public CircuitBreakerOpenException(String message) {
                super(message);
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/SimpleCircuitBreakerTest.java

        @DisplayName("Test requests rejected when circuit is open")
        void testRequestsRejectedWhenOpen() {
            // Open the circuit
            circuitBreaker.tripBreaker();
    
            assertThrows(SimpleCircuitBreaker.CircuitBreakerOpenException.class, () -> circuitBreaker.call(() -> "should not execute"));
    
            SimpleCircuitBreaker.Statistics stats = circuitBreaker.getStatistics();
            assertEquals(1, stats.rejectedCalls);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTransportImpl.java

                        return null;
                    } catch (IOException e) {
                        throw new RuntimeException(e);
                    }
                });
            } catch (SimpleCircuitBreaker.CircuitBreakerOpenException e) {
                // Log circuit breaker rejection
                auditLogger.logSecurityViolation("Circuit breaker open for SMB connection",
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
Back to top