Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 131 for AtomicInteger (0.11 seconds)

  1. 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)
  2. src/test/java/org/codelibs/fess/helper/AbstractConfigHelperTest.java

            configHelper.setLoadCallback(() -> -1);
            assertEquals(-1, configHelper.load());
        }
    
        static class TestConfigHelper extends AbstractConfigHelper {
    
            private final AtomicInteger loadCallCount = new AtomicInteger(0);
            private LoadCallback loadCallback = () -> 0;
    
            @Override
            public int load() {
                loadCallCount.incrementAndGet();
                return loadCallback.call();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  3. 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/collect/SimpleAbstractMultisetTest.java

                    CollectionFeature.SUPPORTS_ADD)
                .createTestSuite());
        return suite;
      }
    
      @SuppressWarnings("ModifiedButNotUsed")
      public void testFastAddAllMultiset() {
        AtomicInteger addCalls = new AtomicInteger();
        Multiset<String> multiset =
            new NoRemoveMultiset<String>() {
              @Override
              public int add(String element, int occurrences) {
                addCalls.incrementAndGet();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/NtlmContext.java

        private byte[] masterKey = null;
        private final String netbiosName = null;
    
        private final boolean requireKeyExchange;
        private final AtomicInteger signSequence = new AtomicInteger(0);
        private final AtomicInteger verifySequence = new AtomicInteger(0);
        private int state = 1;
    
        private final CIFSContext transportContext;
    
        private String targetName;
        private byte[] type1Bytes;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 17.3K bytes
    - Click Count (1)
  6. src/main/java/jcifs/internal/smb2/rdma/disni/DisniMemoryRegion.java

     */
    public class DisniMemoryRegion extends RdmaMemoryRegion {
    
        private static final Logger log = LoggerFactory.getLogger(DisniMemoryRegion.class);
        private static final AtomicInteger keyGenerator = new AtomicInteger(2000);
        private static final AtomicLong addressCounter = new AtomicLong(0x10000000L);
        private static final Map<ByteBuffer, Long> bufferAddresses = new ConcurrentHashMap<>();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                ExecutorService executor = Executors.newFixedThreadPool(10);
                CountDownLatch startLatch = new CountDownLatch(1);
                AtomicInteger successCount = new AtomicInteger(0);
                AtomicInteger failureCount = new AtomicInteger(0);
    
                // Submit tasks that try to sign data
                for (int i = 0; i < 5; i++) {
                    executor.submit(() -> {
                        try {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 43.7K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/MultiChannelManager.java

         */
        public static class ChannelGroup {
            private final String sessionId;
            private final List<ChannelInfo> channels = new CopyOnWriteArrayList<>();
            private final AtomicInteger roundRobinIndex = new AtomicInteger(0);
            private volatile ChannelInfo primaryChannel;
    
            public ChannelGroup(String sessionId) {
                this.sessionId = sessionId;
            }
    
            public String getSessionId() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            int noncesPerThread = 100;
            ConcurrentHashMap<String, Boolean> allNonces = new ConcurrentHashMap<>();
            CountDownLatch latch = new CountDownLatch(threadCount);
            AtomicInteger collisions = new AtomicInteger(0);
    
            // When generating nonces concurrently
            ExecutorService executor = Executors.newFixedThreadPool(threadCount);
            for (int t = 0; t < threadCount; t++) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 44.1K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

      }
    
      private static void insertIntoReplica(Map<Integer, AtomicInteger> replica, int newValue) {
        if (replica.containsKey(newValue)) {
          replica.get(newValue).incrementAndGet();
        } else {
          replica.put(newValue, new AtomicInteger(1));
        }
      }
    
      private static void removeMinFromReplica(
          SortedMap<Integer, AtomicInteger> replica, int minValue) {
        Integer replicatedMinValue = replica.firstKey();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 13:11:08 GMT 2026
    - 36.2K bytes
    - Click Count (0)
Back to Top