- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 131 for AtomicInteger (0.08 seconds)
-
src/main/java/jcifs/util/SmbCircuitBreaker.java
HALF_OPEN } private final String name; private final AtomicReference<State> state = new AtomicReference<>(State.CLOSED); private final AtomicInteger failureCount = new AtomicInteger(0); private final AtomicInteger successCount = new AtomicInteger(0); private final AtomicLong lastFailureTime = new AtomicLong(0); private final AtomicLong lastStateChangeTime = new AtomicLong(System.currentTimeMillis());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 33.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java
*/ public void testBuilder_bruteForce() { for (int i = 0; i < reduceIterationsIfGwt(100); i++) { ImmutableIntArray.Builder builder = ImmutableIntArray.builder(random.nextInt(20)); AtomicInteger counter = new AtomicInteger(0); while (counter.get() < 1000) { BuilderOp op = BuilderOp.randomOp(); op.doIt(builder, counter); } ImmutableIntArray iia = builder.build();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
*/ public void testBuilder_bruteForce() { for (int i = 0; i < reduceIterationsIfGwt(100); i++) { ImmutableDoubleArray.Builder builder = ImmutableDoubleArray.builder(random.nextInt(20)); AtomicInteger counter = new AtomicInteger(0); while (counter.get() < 1000) { BuilderOp op = BuilderOp.randomOp(); op.doIt(builder, counter); } ImmutableDoubleArray iia = builder.build();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 21.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
*/ public void testBuilder_bruteForce() { for (int i = 0; i < reduceIterationsIfGwt(100); i++) { ImmutableDoubleArray.Builder builder = ImmutableDoubleArray.builder(random.nextInt(20)); AtomicInteger counter = new AtomicInteger(0); while (counter.get() < 1000) { BuilderOp op = BuilderOp.randomOp(); op.doIt(builder, counter); } ImmutableDoubleArray iia = builder.build();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 14:49:24 GMT 2025 - 21.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorConcurrencyTest.java
*/ @Test public void test_searchWhileRegisteringSearchers() throws Exception { final CountDownLatch startLatch = new CountDownLatch(1); final AtomicInteger searchCount = new AtomicInteger(0); final AtomicInteger registerCount = new AtomicInteger(0); try (RankFusionProcessor processor = new RankFusionProcessor()) { processor.setSearcher(new TestSearcher(100)); processor.init();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 13.5K bytes - Click Count (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java
final int numThreads = 10; final ExecutorService executor = Executors.newFixedThreadPool(numThreads); final CountDownLatch latch = new CountDownLatch(numThreads); final AtomicInteger callbackCount = new AtomicInteger(0); // Add listeners concurrently from multiple threads for (int i = 0; i < numThreads; i++) { executor.submit(() -> { try {Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Mon Jan 12 06:25:38 GMT 2026 - 16.9K bytes - Click Count (0) -
mockwebserver/src/test/java/mockwebserver3/CustomDispatcherTest.kt
// Make sure our dispatcher got the request. assertThat(requestsMade.size).isEqualTo(1) } @Test fun outOfOrderResponses() { val firstResponseCode = AtomicInteger() val secondResponseCode = AtomicInteger() val secondRequest = "/bar" val firstRequest = "/foo" val latch = CountDownLatch(1) val dispatcher: Dispatcher = object : Dispatcher() {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 3.2K bytes - Click Count (1) -
samples/crawler/src/main/java/okhttp3/sample/Crawler.java
currentThread.setName(originalName); } } } public void fetch(HttpUrl url) throws IOException { // Skip hosts that we've visited many times. AtomicInteger hostnameCount = new AtomicInteger(); AtomicInteger previous = hostnames.putIfAbsent(url.host(), hostnameCount); if (previous != null) hostnameCount = previous; if (hostnameCount.getAndIncrement() >= hostLimit) return;
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jul 23 00:58:06 GMT 2025 - 5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/DataStoreTest.java
} @Test public void test_multiple_datastore_instances() { // Test multiple DataStore instances working independently final AtomicInteger store1CallCount = new AtomicInteger(0); final AtomicInteger store2CallCount = new AtomicInteger(0); DataStore dataStore1 = new DataStore() { @OverrideCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 13.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaConnection.java
/** Local endpoint address */ protected final InetSocketAddress localAddress; /** Available send credits for flow control */ protected final AtomicInteger sendCredits; /** Available receive credits for flow control */ protected final AtomicInteger receiveCredits; /** Queue of pending RDMA work requests */ protected final BlockingQueue<RdmaWorkRequest> pendingRequests; // Connection stateCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 8.2K bytes - Click Count (0)