Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for currentWindow (0.12 sec)

  1. src/main/java/jcifs/audit/SecurityAuditLogger.java

            }
        }
    
        private boolean checkRateLimit(EventType type) {
            String key = type.name();
            long currentWindow = System.currentTimeMillis() / rateLimitWindow;
            String windowKey = key + "_" + currentWindow;
    
            AtomicLong counter = rateLimitCounters.computeIfAbsent(windowKey, k -> new AtomicLong(0));
            long currentCount = counter.incrementAndGet();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
Back to top