Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for updateAndGet (0.04 sec)

  1. src/main/java/jcifs/util/AuthenticationRateLimiter.java

                recentAttempts.incrementAndGet();
                lastAttempt = now;
            }
    
            void recordSuccess() {
                // Reduce counter on success to allow recovery
                recentAttempts.updateAndGet(val -> Math.max(0, val - 1));
            }
    
            void reset() {
                recentAttempts.set(0);
                blocked.set(false);
                blockExpiry = null;
                windowStart = Instant.now();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top