- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for HALF_OPEN (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/main/java/jcifs/util/SimpleCircuitBreaker.java
if (state.compareAndSet(State.OPEN, State.HALF_OPEN)) { stateChangeTime.set(System.currentTimeMillis()); halfOpenSuccesses.set(0); log.info("Circuit breaker {} transitioning from OPEN to HALF_OPEN", name); return State.HALF_OPEN; } // Another thread changed the state, re-evaluate
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 11.3K bytes - Click Count (0) -
src/test/java/jcifs/util/SimpleCircuitBreakerTest.java
@Test @DisplayName("Test transition to HALF_OPEN after timeout") void testTransitionToHalfOpen() throws Exception { // Open the circuit circuitBreaker.tripBreaker(); assertEquals(SimpleCircuitBreaker.State.OPEN, circuitBreaker.getState()); // Wait for timeout Thread.sleep(150); // Next call should transition to HALF_OPENCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 10.6K bytes - Click Count (0) -
src/main/java/jcifs/util/SmbCircuitBreaker.java
if (currentState == State.OPEN && shouldAttemptReset()) { log.debug("[{}] Attempting to reset circuit breaker from OPEN to HALF_OPEN", name); transitionTo(State.HALF_OPEN); currentState = State.HALF_OPEN; } // Block if circuit is open if (currentState == State.OPEN) { totalRequests.incrementAndGet();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 33.4K bytes - Click Count (0)