Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for getAndSet (0.05 sec)

  1. src/main/java/jcifs/smb/SmbTreeImpl.java

                    if (waitForState(transport) == 2) {
                        // already connected
                        return null;
                    }
                    final int before = this.connectionState.getAndSet(1);
                    if (before == 1) {
                        // concurrent connection attempt
                        if (waitForState(transport) == 2) {
                            // finished connecting
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/SimpleCircuitBreaker.java

            log.info("Circuit breaker {} reset", name);
        }
    
        /**
         * Force the circuit to open
         */
        public void tripBreaker() {
            State previous = state.getAndSet(State.OPEN);
            if (previous != State.OPEN) {
                stateChangeTime.set(System.currentTimeMillis());
                lastFailureTime.set(System.currentTimeMillis());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

            // not all.  See the test cases for examples on how this can happen.
            try {
              ((Thread) currentRunner).interrupt();
            } finally {
              Runnable prev = getAndSet(DONE);
              if (prev == PARKED) {
                LockSupport.unpark((Thread) currentRunner);
              }
            }
          }
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 10K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

            while (resultWithDoubleSelfLoop.hasNext()) {
              EndpointPair<N> edge = resultWithDoubleSelfLoop.next();
              if (edge.nodeU().equals(edge.nodeV())) {
                if (!alreadySeenSelfLoop.getAndSet(true)) {
                  return edge;
                }
              } else {
                return edge;
              }
            }
            return endOfData();
          }
        };
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/SmbCircuitBreaker.java

            return timeSinceLastFailure >= resetTimeoutMillis;
        }
    
        private void transitionTo(State newState) {
            State oldState = state.getAndSet(newState);
            lastStateChangeTime.set(System.currentTimeMillis());
    
            if (oldState != newState) {
                log.info("[{}] Circuit breaker state transition: {} -> {}", name, oldState, newState);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

         * cancelled before the callable started execution.
         */
        SettableFuture<@Nullable Void> newFuture = SettableFuture.create();
    
        ListenableFuture<@Nullable Void> oldFuture = ref.getAndSet(newFuture);
    
        // Invoke our task once the previous future completes.
        TrustedListenableFutureTask<T> taskFuture = TrustedListenableFutureTask.create(task);
        oldFuture.addListener(taskFuture, taskExecutor);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/exec/Crawler.java

         * It's called both during normal shutdown and in error conditions.
         */
        private static void destroyContainer() {
            if (running.getAndSet(false)) {
                TimeoutManager.getInstance().stop();
                if (logger.isDebugEnabled()) {
                    logger.debug("Destroying LaContainer...");
                }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 31K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/SystemHelper.java

         * @param status The current cluster status.
         * @return true if the state has changed, false otherwise.
         */
        public boolean isChangedClusterState(final int status) {
            return previousClusterState.getAndSet(status) != status;
        }
    
        /**
         * Creates a new action validator.
         *
         * @param requestManager  The request manager.
         * @param messagesCreator The messages creator.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 36.6K bytes
    - Viewed (0)
Back to top