- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for getBlockedIpCount (0.06 seconds)
-
src/main/java/org/codelibs/fess/helper/RateLimitHelper.java
} /** * Get the number of currently blocked IPs. * Note: This may include expired entries not yet evicted. * @return the count of blocked IPs */ public int getBlockedIpCount() { blockedIps.cleanUp(); return (int) blockedIps.size(); } /** * Get the number of tracked IP counters. * Note: This may include expired entries not yet evicted.Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Dec 24 14:16:27 GMT 2025 - 9.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/RateLimitHelperTest.java
assertEquals(1, rateLimitHelper.getBlockedIpCount()); rateLimitHelper.unblockIp("192.168.1.100"); assertEquals(0, rateLimitHelper.getBlockedIpCount()); } @Test public void test_cleanup() { rateLimitHelper.blockIp("192.168.1.100", 1L); assertEquals(1, rateLimitHelper.getBlockedIpCount()); // Guava Cache handles expiration automatically
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 4K bytes - Click Count (0)