Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 93 for incrementAndGet (0.05 sec)

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

      }
    
      public void testBasics() {
        AtomicInteger totalCalls = new AtomicInteger();
        Runnable intCounter =
            new Runnable() {
              @Override
              public void run() {
                totalCalls.incrementAndGet();
                // Make sure that no other tasks are scheduled to run while this is running.
                assertFalse(fakePool.hasNext());
              }
            };
    
        assertFalse(fakePool.hasNext());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

            requestsSent.incrementAndGet();
        }
    
        /**
         * Increment requests received counter
         */
        public void incrementRequestsReceived() {
            requestsReceived.incrementAndGet();
        }
    
        /**
         * Increment error counter
         */
        public void incrementErrors() {
            errors.incrementAndGet();
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

                                    blockedAttempts.incrementAndGet();
                                    break; // Stop trying if account is locked
                                }
    
                                if (!allowed) {
                                    // Rate limited but not locked out
                                    blockedAttempts.incrementAndGet();
                                    continue;
                                }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                                    }
                                    return "success";
                                });
                                successCount.incrementAndGet();
                            } catch (Exception e) {
                                failureCount.incrementAndGet();
                            }
                        }
                    } finally {
                        latch.countDown();
                    }
                });
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

            private static AtomicInteger instanceCounter = new AtomicInteger(0);
            private final int id;
            private boolean destroyed = false;
    
            public TestComponent() {
                this.id = instanceCounter.incrementAndGet();
            }
    
            public int getId() {
                return id;
            }
    
            public boolean isDestroyed() {
                return destroyed;
            }
    
            public void destroy() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 13:07:01 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                            successCount.incrementAndGet();
                        } catch (RuntimeException e) {
                            failureCount.incrementAndGet();
                        } catch (Exception e) {
                            // Other exceptions also count as failures in this context
                            failureCount.incrementAndGet();
                        }
                    });
                }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

                int behavior = random.nextInt(4);
                if (behavior == 0) { // throw an exception
                  exceptionCount.incrementAndGet();
                  throw new RuntimeException("fake exception for test");
                } else if (behavior == 1) { // return null
                  computeNullCount.incrementAndGet();
                  return null;
                } else if (behavior == 2) { // slight delay before returning
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/TransformerTest.java

            public TestTransformer(String name) {
                this.name = name;
            }
    
            @Override
            public ResultData transform(ResponseData responseData) {
                transformCallCount.incrementAndGet();
                lastResponseData = responseData;
    
                if (responseData == null) {
                    return null;
                }
    
                ResultData resultData = new ResultData();
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 28K bytes
    - Viewed (0)
  9. docs/smb3-features/06-witness-protocol-design.md

        
        public void recordRegistration() { registrationsActive.incrementAndGet(); }
        public void recordUnregistration() { registrationsActive.decrementAndGet(); }
        public void recordNotification() { notificationsReceived.incrementAndGet(); }
        public void recordFailover() { failoverEvents.incrementAndGet(); }
        public void recordHeartbeat() { heartbeatsSent.incrementAndGet(); }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  10. docs/smb3-features/04-directory-leasing-design.md

            return (double) hits / total;
        }
        
        public void recordCacheHit() { cacheHits.incrementAndGet(); }
        public void recordCacheMiss() { cacheMisses.incrementAndGet(); }
        public void recordInvalidation() { cacheInvalidations.incrementAndGet(); }
        public void recordChangeNotification() { changeNotifications.incrementAndGet(); }
    }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
Back to top