- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for threshold (0.05 sec)
-
src/main/java/jcifs/util/SmbCircuitBreaker.java
} /** * Get current failure threshold (may be dynamically adjusted) * * @return current failure threshold */ public int getCurrentFailureThreshold() { return failureThreshold; } /** * Update failure threshold (for dynamic adjustment) * * @param newThreshold the new failure threshold */Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 33.4K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
// Create circuit breaker with dynamic threshold enabled SmbCircuitBreaker dynamicCircuitBreaker = new SmbCircuitBreaker("dynamic-test", 5, 2, 1000, 3, true, false, 100); try { // Test threshold adjustment int initialThreshold = dynamicCircuitBreaker.getCurrentFailureThreshold(); assertEquals(5, initialThreshold, "Initial threshold should be 5"); // Update thresholdRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/TopKSelector.java
// uncheckedCastNullableTToT is safe because bufferSize > 0. if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) > 0) { threshold = elem; } // uncheckedCastNullableTToT is safe because bufferSize > 0. } else if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) < 0) { // Otherwise, we can ignore elem; we've seen k better elements. buffer[bufferSize++] = elem;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 31 13:15:26 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaConfigurationTest.java
assertEquals("auto", config.getRdmaProvider(), "Default provider should be auto"); assertEquals(8192, config.getRdmaReadWriteThreshold(), "Default threshold should be 8KB"); assertEquals(65536, config.getRdmaMaxSendSize(), "Default max send size should be 64KB"); assertEquals(65536, config.getRdmaMaxReceiveSize(), "Default max receive size should be 64KB");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 5.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/compression/CompressionService.java
*/ double estimateCompressionRatio(byte[] data, int algorithm); /** * Gets the minimum data size threshold for compression. * Data smaller than this threshold should not be compressed. * * @return minimum size in bytes for compression to be beneficial */ int getMinCompressionSize(); /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.2K bytes - Viewed (0) -
cmd/dynamic-timeouts.go
package cmd import ( "math" "sync" "sync/atomic" "time" ) const ( dynamicTimeoutIncreaseThresholdPct = 0.33 // Upper threshold for failures in order to increase timeout dynamicTimeoutDecreaseThresholdPct = 0.10 // Lower threshold for failures in order to decrease timeout dynamicTimeoutLogSize = 16 maxDuration = math.MaxInt64
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/util/SimpleCircuitBreakerTest.java
assertEquals(1, stats.totalSuccesses); assertEquals(0, stats.totalFailures); assertEquals(1.0, stats.successRate); } @Test @DisplayName("Test circuit opens after failure threshold") void testCircuitOpensAfterThreshold() { // Fail 3 times to open the circuit for (int i = 0; i < 3; i++) { try { circuitBreaker.call(() -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.6K bytes - Viewed (0) -
src/main/java/jcifs/util/SimpleCircuitBreaker.java
this.timeoutMillis = timeoutMillis; if (failureThreshold < 1) { throw new IllegalArgumentException("Failure threshold must be at least 1"); } if (successThreshold < 1) { throw new IllegalArgumentException("Success threshold must be at least 1"); } if (timeoutMillis < 0) { throw new IllegalArgumentException("Timeout must be non-negative"); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
* * Features: * - Per-account rate limiting * - Per-IP rate limiting * - Global rate limiting * - Exponential backoff for repeated failures * - Account lockout after threshold * - Automatic cleanup of old entries */ public class AuthenticationRateLimiter implements AutoCloseable { private static final Logger log = LoggerFactory.getLogger(AuthenticationRateLimiter.class);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 26.9K bytes - Viewed (0)