Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 617 for counter (0.26 sec)

  1. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       */
      @CanIgnoreReturnValue
      @Override
      public int setCount(E element, int count) {
        checkNotNull(element);
        checkNonnegative(count, "count");
        while (true) {
          AtomicInteger existingCounter = Maps.safeGet(countMap, element);
          if (existingCounter == null) {
            if (count == 0) {
              return 0;
            } else {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  2. maven-artifact/src/main/java/org/apache/maven/artifact/resolver/MultipleArtifactsNotFoundException.java

            StringBuilder buffer = new StringBuilder(256);
    
            buffer.append("Missing:").append(LS);
            buffer.append("----------").append(LS);
    
            int counter = 0;
    
            for (Artifact artifact : artifacts) {
                String message = (++counter) + ") " + artifact.getId();
    
                buffer.append(constructMissingArtifactMessage(
                        message,
                        "  ",
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 4.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/job/CrawlJob.java

                        }
                        counter.incrementAndGet();
                    } else if (logger.isDebugEnabled()) {
                        logger.debug("{} is not running.", scheduledJob.getId());
                    }
                }
            });
            return counter.get();
        }
    
        protected void executeCrawler() {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 15K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/TempFileCreator.java

          @SuppressWarnings("GoodTime") // reading system time without TimeSource
          String baseName = System.currentTimeMillis() + "-";
    
          for (int counter = 0; counter < TEMP_DIR_ATTEMPTS; counter++) {
            File tempDir = new File(baseDir, baseName + counter);
            if (tempDir.mkdir()) {
              return tempDir;
            }
          }
          throw new IllegalStateException(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  5. cmd/metrics-v3-types.go

    type MetricType int
    
    const (
    	// CounterMT - represents a counter metric.
    	CounterMT MetricType = iota
    	// GaugeMT - represents a gauge metric.
    	GaugeMT
    	// HistogramMT - represents a histogram metric.
    	HistogramMT
    )
    
    func (mt MetricType) String() string {
    	switch mt {
    	case CounterMT:
    		return "counter"
    	case GaugeMT:
    		return "gauge"
    	case HistogramMT:
    		return "histogram"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:05:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/SuppliersTest.java

                Thread.yield();
                counter = nextValue;
                return counter;
              }
            };
    
        final int numThreads = 10;
        final int iterations = 1000;
        Thread[] threads = new Thread[numThreads];
        for (int i = 0; i < numThreads; i++) {
          threads[i] =
              new Thread() {
                @Override
                public void run() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/SuppliersTest.java

                Thread.yield();
                counter = nextValue;
                return counter;
              }
            };
    
        final int numThreads = 10;
        final int iterations = 1000;
        Thread[] threads = new Thread[numThreads];
        for (int i = 0; i < numThreads; i++) {
          threads[i] =
              new Thread() {
                @Override
                public void run() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  8. cmd/xl-storage-free-version_test.go

    		t.Helper()
    		if err != nil {
    			t.Fatal(err)
    		}
    	}
    
    	// Add a version with tiered content, one with local content
    	xl := xlMetaV2{}
    	counter := 1
    	report := func() {
    		t.Helper()
    		// t.Logf("versions (%d): len = %d", counter, len(xl.versions))
    		counter++
    	}
    	fi := FileInfo{
    		Volume:           "volume",
    		Name:             "object-name",
    		VersionID:        "00000000-0000-0000-0000-000000000001",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/TestingCacheLoaders.java

      /**
       * Returns a {@code new Object()} for every request, and increments a counter for every request.
       * The count is accessible via {@link #getCount}.
       */
      static class CountingLoader extends CacheLoader<Object, Object> {
        private final AtomicInteger count = new AtomicInteger();
    
        @Override
        public Object load(Object from) {
          count.incrementAndGet();
          return new Object();
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 4.9K bytes
    - Viewed (0)
  10. cmd/http-stats.go

    	sync.RWMutex
    }
    
    // Inc increments the api stats counter.
    func (stats *HTTPAPIStats) Inc(api string) {
    	if stats == nil {
    		return
    	}
    	stats.Lock()
    	defer stats.Unlock()
    	if stats.apiStats == nil {
    		stats.apiStats = make(map[string]int)
    	}
    	stats.apiStats[api]++
    }
    
    // Dec increments the api stats counter.
    func (stats *HTTPAPIStats) Dec(api string) {
    	if stats == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 11.4K bytes
    - Viewed (0)
Back to top