- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 21 for circuit (0.04 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) -
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) -
internal/event/target/kafka.go
} return target, nil } func isKafkaConnErr(err error) bool { // Sarama opens the circuit breaker after 3 consecutive connection failures. return err == sarama.ErrLeaderNotAvailable || err.Error() == "circuit breaker is open"
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Sep 06 23:06:30 GMT 2024 - 13.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.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 Feb 07 00:45:02 GMT 2025 - 33.5K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbConstants.java
/** Native LAN manager name */ String NATIVE_LANMAN = Config.getProperty("jcifs.smb1.smb.client.nativeLanMan", "jCIFS"); /** Virtual circuit number */ int VC_NUMBER = 1; /** Null transport instance */ SmbTransport NULL_TRANSPORT = new SmbTransport(null, 0, null, 0);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 10.3K bytes - Click Count (0)