Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 96 for incrementAndGet (0.07 seconds)

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

  1. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

        Multiset<String> multiset =
            new NoRemoveMultiset<String>() {
              @Override
              public int add(String element, int occurrences) {
                addCalls.incrementAndGet();
                return super.add(element, occurrences);
              }
            };
        ImmutableMultiset<String> adds =
            new ImmutableMultiset.Builder<String>().addCopies("x", 10).build();
        multiset.addAll(adds);
    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)
  2. src/main/java/jcifs/internal/witness/WitnessRegistration.java

        }
    
        /**
         * Gets the next sequence number for this registration.
         *
         * @return the next sequence number
         */
        public long getNextSequenceNumber() {
            return sequenceNumber.incrementAndGet();
        }
    
        /**
         * Updates the heartbeat timestamp to current time and resets failure count.
         */
        public void updateHeartbeat() {
            this.lastHeartbeat = System.currentTimeMillis();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Mon Aug 25 14:34:10 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

                            String nonceStr = Arrays.toString(nonce);
                            if (allNonces.putIfAbsent(nonceStr, true) != null) {
                                collisions.incrementAndGet();
                            }
                        }
                    } finally {
                        latch.countDown();
                    }
                });
            }
    
            // Then
    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)
  4. docs/smb3-features/03-multi-channel-design.md

                k -> new ChannelStatistics());
                
            stats.operations.incrementAndGet();
            stats.latencyTotal.addAndGet(latency);
            
            if (success) {
                stats.bytesReceived.addAndGet(bytes);
            } else {
                stats.errors.incrementAndGet();
            }
        }
        
        public double getAggregatedThroughput() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 39.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/witness/MockWitnessService.java

         * @return the registration ID
         */
        public String registerWitness(String shareName, String serverAddress, int flags) {
            String registrationId = "MOCK-REG-" + registrationCounter.incrementAndGet();
            MockRegistration registration = new MockRegistration(registrationId, shareName, serverAddress, flags);
            registrations.put(registrationId, registration);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

                            buffer[0] = (byte) i;
    
                            // Release buffer
                            BufferCache.releaseBuffer(buffer);
                            successCount.incrementAndGet();
                        }
                    } catch (Exception e) {
                        synchronized (exceptions) {
                            exceptions.add(e);
                        }
                    } finally {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  7. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          val request =
            readRequest(
              socket = socket,
              connectionIndex = connectionIndex,
              exchangeIndex = nextExchangeIndex++,
            )
          atomicRequestCount.incrementAndGet()
          requestQueue.add(request)
    
          if (request.failure != null) {
            return false // Nothing to respond to.
          }
    
          val response = dispatcher.dispatch(request)
    
          try {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 40.3K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbTreeImpl.java

        }
    
        /**
         * @param track
         * @return tree with increased usage count
         */
        public SmbTreeImpl acquire(final boolean track) {
            final long usage = this.usageCount.incrementAndGet();
            if (log.isTraceEnabled()) {
                log.trace("Acquire tree " + usage + " " + this);
            }
    
            if (track && this.traceResource) {
                synchronized (this.acquires) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

            ThumbnailManager mockThumbnailManager = new ThumbnailManager() {
                @Override
                public int generate(ExecutorService executorService, boolean cleanup) {
                    counter.incrementAndGet();
                    // Return 0 to exit the loop
                    return 0;
                }
            };
            ComponentUtil.register(mockThumbnailManager, "thumbnailManager");
        }
    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/org/codelibs/fess/helper/RateLimitHelper.java

            if (counter == null) {
                counter = new AtomicLong(0);
                requestCounters.put(ip, counter);
            }
    
            final long count = counter.incrementAndGet();
    
            if (logger.isDebugEnabled()) {
                logger.debug("Request count: ip={}, count={}, max={}", ip, count, maxRequests);
            }
    
            if (count > maxRequests) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Dec 24 14:16:27 GMT 2025
    - 9.4K bytes
    - Click Count (0)
Back to Top