Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 118 for incrementAndGet (0.13 seconds)

  1. src/test/java/org/codelibs/fess/job/JobExecutorTest.java

            AtomicInteger counter1 = new AtomicInteger(0);
            AtomicInteger counter2 = new AtomicInteger(0);
    
            executor1.addShutdownListener(() -> counter1.incrementAndGet());
            executor2.addShutdownListener(() -> counter2.incrementAndGet());
    
            executor1.shutdown();
            assertEquals(1, counter1.get());
            assertEquals(0, counter2.get());
    
            executor2.shutdown();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

      }
    
      public void testBasics() {
        AtomicInteger totalCalls = new AtomicInteger();
        Runnable intCounter =
            () -> {
              totalCalls.incrementAndGet();
              // Make sure that no other tasks are scheduled to run while this is running.
              assertFalse(fakePool.hasNext());
            };
    
        assertFalse(fakePool.hasNext());
        e.execute(intCounter);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

      }
    
      public void testBasics() {
        AtomicInteger totalCalls = new AtomicInteger();
        Runnable intCounter =
            () -> {
              totalCalls.incrementAndGet();
              // Make sure that no other tasks are scheduled to run while this is running.
              assertFalse(fakePool.hasNext());
            };
    
        assertFalse(fakePool.hasNext());
        e.execute(intCounter);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

        for (int i = 0; i < 1000; i++) {
          AtomicInteger counter = new AtomicInteger();
          TrustedListenableFutureTask<Integer> task =
              TrustedListenableFutureTask.create(counter::incrementAndGet);
          CyclicBarrier barrier = new CyclicBarrier(numThreads + 1);
          Runnable wrapper =
              () -> {
                awaitUnchecked(barrier);
                task.run();
                awaitUnchecked(barrier);
    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)
  5. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

        for (int i = 0; i < 1000; i++) {
          AtomicInteger counter = new AtomicInteger();
          TrustedListenableFutureTask<Integer> task =
              TrustedListenableFutureTask.create(counter::incrementAndGet);
          CyclicBarrier barrier = new CyclicBarrier(numThreads + 1);
          Runnable wrapper =
              () -> {
                awaitUnchecked(barrier);
                task.run();
                awaitUnchecked(barrier);
    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)
  6. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

                evictionCount.incrementAndGet();
                totalSum.addAndGet(notification.getValue().get());
              }
            };
    
        CacheLoader<Integer, AtomicInteger> loader =
            new CacheLoader<Integer, AtomicInteger>() {
              @Override
              public AtomicInteger load(Integer key) {
                applyCount.incrementAndGet();
                return new AtomicInteger();
              }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 19.1K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

            void recordConnection() {
                connectionsCreated.incrementAndGet();
                lastActivityTime = System.currentTimeMillis();
            }
    
            void recordSuccess() {
                successCount.incrementAndGet();
                lastActivityTime = System.currentTimeMillis();
            }
    
            void recordFailure() {
                failureCount.incrementAndGet();
                lastActivityTime = System.currentTimeMillis();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 33.4K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

        return atomic == null ? 0L : atomic.get();
      }
    
      /**
       * Increments by one the value currently associated with {@code key}, and returns the new value.
       */
      @CanIgnoreReturnValue
      public long incrementAndGet(K key) {
        return addAndGet(key, 1);
      }
    
      /**
       * Decrements by one the value currently associated with {@code key}, and returns the new value.
       */
      @CanIgnoreReturnValue
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed May 14 13:21:19 GMT 2025
    - 14K bytes
    - Click Count (0)
  9. src/main/java/jcifs/audit/SecurityAuditLogger.java

            }
    
            // Rate limiting check
            if (!checkRateLimit(type)) {
                return;
            }
    
            try {
                // Update statistics
                eventCounters.get(type).incrementAndGet();
    
                // Get pooled objects
                AuditEntry entry = getAuditEntry();
                entry.timestamp = Instant.now();
                entry.eventType = type;
                entry.severity = severity;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 26.6K bytes
    - Click Count (0)
  10. android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt

            val calls = mutableMapOf<String, AtomicInteger>()
    
            override fun publish(record: LogRecord) {
              calls
                .getOrPut(record.loggerName) { AtomicInteger(0) }
                .incrementAndGet()
            }
    
            override fun flush() {
            }
    
            override fun close() {
            }
          }.apply {
            level = Level.FINEST
          }
    
        Logger
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 29.9K bytes
    - Click Count (0)
Back to Top