- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 37 for circuit (0.07 seconds)
-
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
} @Test public void testCircuitResetsAfterTimeout() throws Exception { // Open the circuit circuitBreaker.trip(); assertEquals(State.OPEN, circuitBreaker.getState(), "Circuit should be OPEN"); // Wait for reset timeout Thread.sleep(1100);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) -
src/main/java/jcifs/util/SimpleCircuitBreaker.java
/** * Creates a simple circuit breaker with default settings * * @param name the circuit breaker name */ public SimpleCircuitBreaker(String name) { this(name, 5, 3, 30000L); // 5 failures, 3 successes, 30 second timeout } /** * Creates a simple circuit breaker * * @param name the circuit breaker nameCreated: 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/main/java/jcifs/util/SmbCircuitBreaker.java
/** * Create a circuit breaker with default settings * * @param name circuit breaker name for logging */ public SmbCircuitBreaker(String name) { this(name, 5, 3, 60000, 3, false, false, 100); } /** * Create a circuit breaker with custom settings * * @param name circuit breaker name for loggingCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 33.4K bytes - Click Count (0) -
src/test/java/jcifs/util/SimpleCircuitBreakerTest.java
} @Test @DisplayName("Test circuit closes after success threshold in HALF_OPEN") void testCircuitClosesAfterSuccessThreshold() throws Exception { // Open the circuit circuitBreaker.tripBreaker(); // Wait for timeout Thread.sleep(150); // Two successful calls should close the circuit circuitBreaker.call(() -> "success1");Created: 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/test/java/jcifs/smb/SmbFileInputStreamTest.java
when(mockFile.getType()).thenReturn(SmbConstants.TYPE_FILESYSTEM); // Capture the ReadAndX request; throw to short-circuit network doAnswer(inv -> { throw new SmbException("short-circuit"); }).when(mockTree) .send(any(jcifs.internal.CommonServerMessageBlockRequest.class),
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java
* upcasts every method to the nearest acccessible method. */ private static Method[] getAccessibleMethods(Class<?> clazz) { Method[] methods = clazz.getMethods(); // Short circuit for the (hopefully) majority of cases where the // clazz is public if (Modifier.isPublic(clazz.getModifiers())) { return methods; }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 13.5K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/DefaultMirrorSelector.java
*/ static boolean matchPattern(ArtifactRepository originalRepository, String pattern) { boolean result = false; String originalId = originalRepository.getId(); // simple checks first to short circuit processing below. if (WILDCARD.equals(pattern) || pattern.equals(originalId)) { result = true; } else { // process the list String[] repos = pattern.split(",");Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 8K bytes - Click Count (0) -
build-tools-internal/src/main/resources/changelog-schema.json
"Features/Stats", "Features/Watcher", "Geo", "Graph", "Highlighting", "IdentityProvider", "Infra/CLI", "Infra/Circuit Breakers", "Infra/Core", "Infra/Logging", "Infra/Node Lifecycle", "Infra/Plugins", "Infra/REST API", "Infra/Resiliency",Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Wed Sep 01 06:25:29 GMT 2021 - 5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SSPContextTest.java
void testNoMicCalculationWhenIntegrityUnsupported() throws Exception { // Only stub supportsIntegrity - isEstablished won't be called due to short-circuit when(mockCtx.supportsIntegrity()).thenReturn(false); // A small consumer that only uses MIC if advertised as available byte[] data = new byte[] { 1, 2 };
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.2K bytes - Click Count (0) -
docs/features/interceptors.md
* Permitted to short-circuit and not call `Chain.proceed()`. * Permitted to retry and make multiple calls to `Chain.proceed()`. * Can adjust Call timeouts using withConnectTimeout, withReadTimeout, withWriteTimeout. **Network Interceptors** * Able to operate on intermediate responses like redirects and retries. * Not invoked for cached responses that short-circuit the network.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 8.1K bytes - Click Count (0)