- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 106 for AtomicInteger (0.05 sec)
-
android/guava-tests/test/com/google/common/eventbus/EventBusTest.java
*/ // We use an anonymous class to be sure that we generate two methods (bridge and original). @SuppressWarnings("AnonymousToLambda") public void testRegistrationWithBridgeMethod() { AtomicInteger calls = new AtomicInteger(); bus.register( new Callback<String>() { @Subscribe @Override public void call(String s) { calls.incrementAndGet(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 11.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheLoadingTest.java
assertEquals(1, stats.loadExceptionCount()); assertEquals(0, stats.hitCount()); } public void testReloadAfterFailure() throws ExecutionException { AtomicInteger count = new AtomicInteger(); Exception e = new IllegalStateException("exception to trigger failure on first load()"); CacheLoader<Integer, String> failOnceFunction = new CacheLoader<Integer, String>() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 85.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/BufferCache.java
new java.util.concurrent.ConcurrentLinkedQueue<>(); // Track queue size with atomic counter for efficiency private static final java.util.concurrent.atomic.AtomicInteger queueSize = new java.util.concurrent.atomic.AtomicInteger(0); /** * Gets a buffer from the cache or creates a new one if the cache is empty. * * Performance: O(1) operation using concurrent queue *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 4.2K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java
NUM_THREADS, Long.MAX_VALUE, SECONDS, new ArrayBlockingQueue<Runnable>(1000)); executorService.prestartAllCoreThreads(); AtomicInteger integer = new AtomicInteger(); // Execute a bunch of tasks to ensure that our threads are allocated and hot for (int i = 0; i < NUM_THREADS * 10; i++) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/util/SecureKeyManagerTest.java
int threadCount = 10; int operationsPerThread = 50; CountDownLatch latch = new CountDownLatch(threadCount); AtomicInteger successCount = new AtomicInteger(0); ExecutorService executor = Executors.newFixedThreadPool(threadCount); for (int t = 0; t < threadCount; t++) { final int threadId = t;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeResolver.java
private static class WildcardCapturer { static final WildcardCapturer INSTANCE = new WildcardCapturer(); private final AtomicInteger id; private WildcardCapturer() { this(new AtomicInteger()); } private WildcardCapturer(AtomicInteger id) { this.id = id; } final Type capture(Type type) { checkNotNull(type); if (type instanceof Class) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Sep 03 14:03:14 UTC 2025 - 24.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/CrawlJobTest.java
public void test_getRunningJobCount() { // Skip this test - requires complex DB setup if (true) return; // Setup test with mock ScheduledJobBhv final AtomicInteger callCount = new AtomicInteger(0); final List<ScheduledJob> scheduledJobs = new ArrayList<>(); // Create test scheduled jobs ScheduledJob job1 = new ScheduledJob() { @Override
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 25K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImplTest.java
// Test thread safety final int threadCount = 10; final int docsPerThread = 10; final List<Thread> threads = new ArrayList<>(); final AtomicInteger successCount = new AtomicInteger(0); for (int i = 0; i < threadCount; i++) { final int threadId = i; Thread thread = new Thread(() -> { for (int j = 0; j < docsPerThread; j++) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 24.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java
} final int threadCount = 10; final CountDownLatch startLatch = new CountDownLatch(1); final CountDownLatch endLatch = new CountDownLatch(threadCount); final AtomicInteger removeCount = new AtomicInteger(0); for (int i = 0; i < threadCount; i++) { final int threadId = i; new Thread(new Runnable() { @Override public void run() {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 23.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/query/QueryFieldConfigTest.java
} public void test_highlightedFields() { String[] fields = { "field1", "field2", "field3" }; queryFieldConfig.setHighlightedFields(fields); AtomicInteger count = new AtomicInteger(0); queryFieldConfig.highlightedFields(stream -> { stream.forEach(field -> { count.incrementAndGet();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 33.2K bytes - Viewed (0)