Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for compareAndSet (0.05 sec)

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

            if (current == State.OPEN) {
                long timeSinceLastFailure = System.currentTimeMillis() - lastFailureTime.get();
                if (timeSinceLastFailure > timeoutMillis) {
                    if (state.compareAndSet(State.OPEN, State.HALF_OPEN)) {
                        stateChangeTime.set(System.currentTimeMillis());
                        halfOpenSuccesses.set(0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java

            // First initialization
            if (client.isInit.compareAndSet(false, true)) {
                client.init();
            }
            assertTrue("Client should be initialized", client.isInit.get());
    
            // Second initialization attempt should be no-op
            boolean secondInit = client.isInit.compareAndSet(false, true);
            assertFalse("Second initialization should not occur", secondInit);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Nov 19 08:59:28 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbSessionImpl.java

                log.trace("Acquire session " + usage + " " + this);
            }
    
            if (usage == 1) {
                synchronized (this) {
                    if (this.transportAcquired.compareAndSet(false, true)) {
                        log.debug("Reacquire transport");
                        this.transport.acquire();
                    }
                }
            }
    
            return this;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/AuthenticationRateLimiter.java

            long windowStart = currentWindowStart.get();
    
            // Check if we need to reset the window (1 minute window)
            if (now - windowStart > 60000) {
                currentWindowStart.compareAndSet(windowStart, now);
                globalAttemptsInCurrentWindow.set(0);
            }
    
            int attempts = globalAttemptsInCurrentWindow.incrementAndGet();
            return attempts <= maxGlobalAttemptsPerMinute;
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/SmbCircuitBreaker.java

            while (responseTimeMs < currentMin) {
                if (minResponseTime.compareAndSet(currentMin, responseTimeMs)) {
                    break;
                }
                currentMin = minResponseTime.get();
            }
    
            long currentMax = maxResponseTime.get();
            while (responseTimeMs > currentMax) {
                if (maxResponseTime.compareAndSet(currentMax, responseTimeMs)) {
                    break;
                }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTreeImpl.java

                }
            }
    
            if (usage == 1) {
                synchronized (this) {
                    if (this.sessionAcquired.compareAndSet(false, true)) {
                        log.debug("Reacquire session");
                        this.session.acquire();
                    }
                }
            }
            return this;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

                    if (logger.isDebugEnabled()) {
                        logger.debug("Process {} is not alive.", p);
                    }
                    return;
                }
    
                if (executed.compareAndSet(false, true)) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("Interrupting a stream thread.");
                    }
                    ist.interrupt();
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Dec 04 08:02:36 UTC 2025
    - 16K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java

         * @return the response data
         * @throws CrawlingAccessException if the request fails
         */
        protected ResponseData processRequest(final String uri, final boolean includeContent) {
            if (isInit.compareAndSet(false, true)) {
                init();
            }
    
            // start
            AccessTimeoutTarget accessTimeoutTarget = null;
            TimeoutTask accessTimeoutTask = null;
            if (accessTimeout != null) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 12:19:14 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top