- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 82 for limiter (0.08 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.9K bytes - Viewed (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
* @return true if attempt is allowed, false if rate limited * @throws SmbException if account is locked out */ public boolean checkAttempt(String username, String sourceIp) throws SmbException { if (closed.get()) { throw new IllegalStateException("Rate limiter is closed"); } // Check global rate limit if (!checkGlobalRateLimit()) {
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/test/java/jcifs/util/AuthenticationRateLimiterTest.java
// The rate limiter should still be functional after concurrent access assertTrue(concurrentLimiter.checkAttempt("finaluser", "192.168.3.1"), "Rate limiter should still be functional after concurrent operations"); // Verify that the rate limiter tracked some activity
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/BufferCache.java
* * Performance optimizations: * - Uses ConcurrentLinkedQueue for O(1) operations * - Lock-free operations for better concurrency * - Proper buffer validation and limits */ public class BufferCache { /** * Private constructor to prevent instantiation of this utility class. */ private BufferCache() { // Utility class - not instantiable }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 4.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/TestLocking.java
* * @param args command line arguments: [-t numThreads] [-i numIter] [-d delay] url * @throws Exception if an error occurs during test execution */ public static void main(final String[] args) throws Exception { if (args.length < 1) { logger.error("usage: TestLocking [-t <numThreads>] [-i <numIter>] [-d <delay>] url"); System.exit(1); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 4.2K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
} // Reasonable upper limit (1TB) long maxSize = 1099511627776L; if (size > maxSize) { failedValidations.incrementAndGet(); log.warn("File size exceeds reasonable limit: {} > {}", size, maxSize); throw new SmbException("File size exceeds limit: " + size); } } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TestLockingTest.java
// Set custom values t.numThreads = 5; t.numIter = 10; t.delay = 250L; t.url = "smb://custom/path/file.txt"; // Verify values are set assertEquals(5, t.numThreads, "numThreads should be configurable"); assertEquals(10, t.numIter, "numIter should be configurable"); assertEquals(250L, t.delay, "delay should be configurable");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/util/StringUtilTest.java
assertEquals("日本語,中文,한국어", result); } @ParameterizedTest @DisplayName("Should handle various delimiter types") @MethodSource("provideDelimiters") void testJoinWithVariousDelimiters(String delimiter, String expected) { String result = StringUtil.join(delimiter, "A", "B", "C"); assertEquals(expected, result); } private static Stream<Arguments> provideDelimiters() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
Iterable<String> iterable = newArrayList("foo", "bar", "baz"); Iterable<String> limited = Iterables.limit(iterable, 2); List<String> expected = ImmutableList.of("foo", "bar"); List<String> actual = newArrayList(limited); assertEquals(expected, actual); assertCanIterateAgain(limited); assertEquals("[foo, bar]", limited.toString()); } public void testLimit_illegalArgument() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 45.2K bytes - Viewed (0)