- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 131 for AtomicInteger (0.2 seconds)
-
benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/Allocators.java
return new AllocationDeciders(deciders); } private static final AtomicInteger portGenerator = new AtomicInteger(); public static DiscoveryNode newNode(String nodeId, Map<String, String> attributes) { return new DiscoveryNode( "", nodeId,
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Wed Feb 03 00:10:53 GMT 2021 - 3.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java
assertEquals(-1L, callback.getDocumentSize()); } @Test public void test_store_with_empty_map() { // Test with empty data map final AtomicInteger storeCount = new AtomicInteger(0); IndexUpdateCallback callback = new IndexUpdateCallback() { @Override public void store(DataStoreParams paramMap, Map<String, Object> dataMap) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 12.5K bytes - Click Count (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
CountDownLatch latch = new CountDownLatch(threadCount); ExecutorService executor = Executors.newFixedThreadPool(threadCount); AtomicInteger successCount = new AtomicInteger(0); AtomicInteger failureCount = new AtomicInteger(0); for (int t = 0; t < threadCount; t++) { final int threadId = t; executor.submit(() -> { try {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 23.2K bytes - Click Count (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
private final Map<String, AccountAttempts> accountAttempts = new ConcurrentHashMap<>(); private final Map<String, IpAttempts> ipAttempts = new ConcurrentHashMap<>(); private final AtomicInteger globalAttemptsInCurrentWindow = new AtomicInteger(0); private final AtomicLong currentWindowStart = new AtomicLong(System.currentTimeMillis()); // Cleanup scheduler private final ScheduledExecutorService cleanupScheduler;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.1K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MoreExecutorsDirectExecutorBenchmark.java
} }; abstract Executor executor(); } @Param Impl impl; Executor executor; static final class CountingRunnable implements Runnable { AtomicInteger integer = new AtomicInteger(); @Override public void run() { integer.incrementAndGet(); } } CountingRunnable countingRunnable = new CountingRunnable();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 3.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java
coordinatorHelper.dispatchEvent(event); assertTrue(called.get()); } @Test public void test_addEventHandler_multipleHandlers() { final AtomicInteger count = new AtomicInteger(0); coordinatorHelper.addEventHandler("config_updated", event -> count.incrementAndGet()); coordinatorHelper.addEventHandler("config_updated", event -> count.incrementAndGet());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 58.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/eventbus/outside/OutsideEventBusTest.java
* it can fail here. */ public void testAnonymous() { AtomicReference<String> holder = new AtomicReference<>(); AtomicInteger deliveries = new AtomicInteger(); EventBus bus = new EventBus(); bus.register( new Object() { @Subscribe public void accept(String str) { holder.set(str);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 1.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/tcp/TcpMemoryRegion.java
*/ public class TcpMemoryRegion extends RdmaMemoryRegion { private static final AtomicInteger keyGenerator = new AtomicInteger(1000); /** * Create new TCP memory region * * @param buffer memory buffer * @param access access permissions (ignored for TCP) */ public TcpMemoryRegion(ByteBuffer buffer, EnumSet<RdmaAccess> access) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 2.1K bytes - Click Count (0) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
final int attemptsPerThread = 5; Thread[] threads = new Thread[numThreads]; final AtomicInteger successfulThreads = new AtomicInteger(0); final AtomicInteger blockedAttempts = new AtomicInteger(0); final AtomicInteger exceptionCount = new AtomicInteger(0); for (int i = 0; i < numThreads; i++) { final int threadId = i;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/eventbus/outside/OutsideEventBusTest.java
* it can fail here. */ public void testAnonymous() { AtomicReference<String> holder = new AtomicReference<>(); AtomicInteger deliveries = new AtomicInteger(); EventBus bus = new EventBus(); bus.register( new Object() { @Subscribe public void accept(String str) { holder.set(str);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 1.9K bytes - Click Count (0)