Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 100 for incrementAndGet (0.09 sec)

  1. src/main/java/jcifs/util/SimpleCircuitBreaker.java

         */
        public <T> T call(Callable<T> callable, Callable<T> fallback) throws Exception {
            totalCalls.incrementAndGet();
    
            State currentState = evaluateState();
    
            if (currentState == State.OPEN) {
                rejectedCalls.incrementAndGet();
                if (fallback != null) {
                    log.debug("Circuit breaker {} is open, using fallback", name);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

                        if (shouldRelease) {
                            session.release();
                            releaseCount.incrementAndGet();
                        } else {
                            session.acquire();
                            acquireCount.incrementAndGet();
                        }
    
                    } catch (Exception e) {
                        // Ignore expected exceptions from over-release
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. 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();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/ResourceManager.java

            String resourceId = generateResourceId(resource);
            ResourceHolder holder = new ResourceHolder(resourceId, resource, referenceQueue);
    
            activeResources.put(resourceId, holder);
            totalAllocated.incrementAndGet();
    
            log.trace("Registered resource: {} ({})", resourceId, resource.getClass().getSimpleName());
    
            return resourceId;
        }
    
        /**
         * Mark a resource as closed
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheLoaderTest.java

              @Override
              public Object load(Object key) {
                loadCount.incrementAndGet();
                return new Object();
              }
    
              @Override
              public ListenableFuture<Object> reload(Object key, Object oldValue) {
                reloadCount.incrementAndGet();
                return immediateFuture(new Object());
              }
    
              @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. 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();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/ds/DataStoreTest.java

                    // Do nothing
                }
    
                @Override
                public void stop() {
                    stopCallCount.incrementAndGet();
                }
            };
    
            // Execute stop multiple times
            dataStore.stop();
            dataStore.stop();
            dataStore.stop();
    
            assertEquals(3, stopCallCount.get());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/CriticalPerformanceTest.java

                                // Test connection pool operations without actually connecting
                                boolean contains = pool.contains(null); // Should handle gracefully
                                successCount.incrementAndGet();
                            } catch (Exception e) {
                                synchronized (exceptions) {
                                    exceptions.add(e);
                                }
                            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  9. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
Back to top