Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 100 for AtomicInteger (0.16 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

          int expectedOccupiedDepth) {
        AtomicBoolean actualIsOccupied = new AtomicBoolean();
        AtomicBoolean actualIsOccupiedByCurrentThread = new AtomicBoolean();
        AtomicInteger actualOccupiedDepth = new AtomicInteger();
        AtomicReference<Throwable> thrown = new AtomicReference<>();
        joinUninterruptibly(
            startThread(
                () -> {
                  try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 5K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/cache/TestingRemovalListeners.java

       * access to the most-recently received one.
       */
      static class CountingRemovalListener<K, V> implements RemovalListener<K, V> {
        private final AtomicInteger count = new AtomicInteger();
        private volatile @Nullable RemovalNotification<K, V> lastNotification;
    
        @Override
        public void onRemoval(RemovalNotification<K, V> notification) {
          count.incrementAndGet();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

      public void testRunIdempotency() throws Exception {
        int numThreads = 10;
        ExecutorService executor = newFixedThreadPool(numThreads);
        for (int i = 0; i < 1000; i++) {
          AtomicInteger counter = new AtomicInteger();
          TrustedListenableFutureTask<Integer> task =
              TrustedListenableFutureTask.create(counter::incrementAndGet);
          CyclicBarrier barrier = new CyclicBarrier(numThreads + 1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        QueuingRemovalListener<String, String> removalListener = queuingRemovalListener();
        AtomicInteger computeCount = new AtomicInteger();
        AtomicInteger exceptionCount = new AtomicInteger();
        AtomicInteger computeNullCount = new AtomicInteger();
        @SuppressWarnings("CacheLoaderNull") // test of handling of erroneous implementation
        CacheLoader<String, String> countingIdentityLoader =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        QueuingRemovalListener<String, String> removalListener = queuingRemovalListener();
        AtomicInteger computeCount = new AtomicInteger();
        AtomicInteger exceptionCount = new AtomicInteger();
        AtomicInteger computeNullCount = new AtomicInteger();
        @SuppressWarnings("CacheLoaderNull") // test of handling of erroneous implementation
        CacheLoader<String, String> countingIdentityLoader =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/helper/LogNotificationHelper.java

        private TimeoutTask timeoutTask;
        private LogNotificationTarget logNotificationTarget;
        private final ConcurrentLinkedQueue<LogNotificationEvent> queue = new ConcurrentLinkedQueue<>();
        private final AtomicInteger size = new AtomicInteger(0);
    
        /**
         * Initializes the log notification timer.
         */
        @PostConstruct
        public void init() {
            logNotificationTarget = new LogNotificationTarget();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/helper/LogNotificationHelperTest.java

            ExecutorService executor = Executors.newFixedThreadPool(numThreads);
            CountDownLatch startLatch = new CountDownLatch(1);
            CountDownLatch doneLatch = new CountDownLatch(numThreads);
            AtomicInteger totalDrained = new AtomicInteger(0);
    
            for (int t = 0; t < numThreads; t++) {
                final int threadId = t;
                executor.submit(() -> {
                    try {
                        startLatch.await();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildStep.java

        final Map<Integer, Map<String, MojoExecution>> mojos = new TreeMap<>();
        final Collection<BuildStep> predecessors = new HashSet<>();
        final Collection<BuildStep> successors = new HashSet<>();
        final AtomicInteger status = new AtomicInteger();
        final AtomicBoolean skip = new AtomicBoolean();
        volatile Exception exception;
    
        public BuildStep(String name, MavenProject project, Lifecycle.Phase phase) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Apr 30 16:21:08 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

            options.numOfThreads = 4;
            options.cleanup = false;
    
            // Setup mock components with counter
            final AtomicInteger generateCallCount = new AtomicInteger(0);
            setupMockComponentsWithCounter(generateCallCount);
    
            Method processMethod = ThumbnailGenerator.class.getDeclaredMethod("process", ThumbnailGenerator.Options.class);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  10. src/main/java/jcifs/util/SimpleCircuitBreaker.java

        }
    
        private final String name;
        private final AtomicReference<State> state = new AtomicReference<>(State.CLOSED);
        private final AtomicInteger consecutiveFailures = new AtomicInteger(0);
        private final AtomicInteger halfOpenSuccesses = new AtomicInteger(0);
        private final AtomicLong lastFailureTime = new AtomicLong(0);
        private final AtomicLong stateChangeTime = new AtomicLong(System.currentTimeMillis());
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11.3K bytes
    - Click Count (0)
Back to Top